libjio.h | libjio.h | |||
---|---|---|---|---|
skipping to change at line 381 | skipping to change at line 381 | |||
* @param count maximum number of bytes to write | * @param count maximum number of bytes to write | |||
* @returns number of bytes written on success, or -1 on error | * @returns number of bytes written on success, or -1 on error | |||
* @see writev(2) | * @see writev(2) | |||
* @ingroup unix | * @ingroup unix | |||
*/ | */ | |||
ssize_t jwritev(jfs_t *fs, const struct iovec *vector, int count); | ssize_t jwritev(jfs_t *fs, const struct iovec *vector, int count); | |||
/** Truncates the file to the given length. Works just like UNIX ftruncate( 2). | /** Truncates the file to the given length. Works just like UNIX ftruncate( 2). | |||
* | * | |||
* @param fs file to truncate | * @param fs file to truncate | |||
* @param length lenght to truncate to | * @param length length to truncate to | |||
* @returns 0 on success, -1 on error | * @returns 0 on success, -1 on error | |||
* @see ftruncate(2) | * @see ftruncate(2) | |||
* @ingroup unix | * @ingroup unix | |||
*/ | */ | |||
int jtruncate(jfs_t *fs, off_t length); | int jtruncate(jfs_t *fs, off_t length); | |||
/** Reposition read/write file offset. Works just like UNIX lseek(2). | /** Reposition read/write file offset. Works just like UNIX lseek(2). | |||
* | * | |||
* @param fs file to change the offset to | * @param fs file to change the offset to | |||
* @param offset offset to set | * @param offset offset to set | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||