Section: (3) Updated: 12 January 2005 Local index
gfs_pio_truncate - truncate a file to a specified length
char *gfs_pio_truncate (GFS_File gf, file_offset_t length);
The gfs_pio_truncate() function truncates the
regular file gf to the length
If the file was previously shorter than the length, it is extended,
and the extended part is filled by zero bytes.
The file pointer is not changed.
You must specify GFS_FILE_MODE_WRITE in opening
the file, because it must be open for writing.
The function terminated successfully.
Insufficient memory was available.
An error except the above occurred. The reason is shown by its
- RETURN VALUES
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:46:49 GMT, April 16, 2011