debian man page for gfs_pio_truncate

Query: gfs_pio_truncate

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GFS_PIO_TRUNCATE(3)													       GFS_PIO_TRUNCATE(3)

NAME
gfs_pio_truncate - truncate a file to a specified length
SYNOPSIS
#include <gfarm/gfarm.h> char *gfs_pio_truncate (GFS_File gf, file_offset_t length);
DESCRIPTION
The gfs_pio_truncate() function truncates the regular file gf to the length bytes. 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.
RETURN VALUES
NULL The function terminated successfully. GFARM_ERR_NO_MEMORY Insufficient memory was available. Others An error except the above occurred. The reason is shown by its pointed strings.
SEE ALSO
gfs_pio_create(3), gfs_pio_open(3) Gfarm 12 January 2005 GFS_PIO_TRUNCATE(3)
Related Man Pages
gfarm(3) - debian
gfarm_url_section_replicate_from_to(3) - debian
gfs_pio_gets(3) - debian
gfs_pio_open(3) - debian
gfs_rename(3) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Detecting unused variables...
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph