Open System Services System Calls Reference Manual (G06.28+, H06.05+)

fstatvfs64(2) OSS System Calls Reference Manual
NAME
fstatvfs64 - Gets leset information for an open le
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/statvfs.h>
int fstatvfs64(
int ledes,
struct statvfs64 *buffer);
PARAMETERS
filedes Species an open le descriptor obtained from a successful call to the creat(),
creat64(), dup(), dup2( ), fcntl( ), open(),oropen64() function.
buffer Points to a statvfs64 structure that is to hold the returned information for the
fstatvfs64() call.
DESCRIPTION
The fstatvfs64( ) function is similar to the fstatvfs() function except that, in addition to support-
ing smaller les, the fstatvfs64() function supports OSS les larger than approximately 2 giga-
bytes.
An application can explicitly call this function when the application is compiled using the
#dene _LARGEFILE64_SOURCE 1 feature test macro or an equivalent compiler command
option.
An application call to fstatvfs() is automatically mapped to this function when the applciation is
compiled using the #dene _FILE_OFFSET_BITS 64 feature test macro or an equivalent com-
piler command option.
The fstatvfs64( ) function returns descriptive information about a mounted leset. The informa-
tion is returned in a statvfs64 structure, which has this denition from the sys/statvfs.h header
le:
typedef struct statvfs64 {
u_long f_bsize;
u_long f_frsize;
fsblkcnt64_t f_blocks;
fsblkcnt64_t f_bfree;
fsblkcnt64_t f_bavail;
fslcnt64_t f_les;
fslcnt64_t f_ffree;
fslcnt64_t f_favail;
u_long f_fsid;
char f_basetype[FSTYPSZ];
u_long f_ag;
u_long f_namemax;
char f_fstr[32];
fsblkcnt64_t f_bminavail;
fsblkcnt64_t f_bmaxavail;
u_long f_ller[5];
} statvfs64_t;
348 Hewlett-Packard Company 527186-007