Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (f - i) fstatvfs64(2)
NAME
fstatvfs64 - Gets fileset information for an open file
LIBRARY
G-series native OSS processes: system library
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/statvfs.h>
int fstatvfs64(
int filedes,
struct statvfs64 *buffer);
PARAMETERS
filedes Specifies an open file 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 files, the fstatvfs64() function supports OSS files larger than approximately 2 giga-
bytes.
An application can explicitly call this function when the application is compiled using the
#define _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 #define _FILE_OFFSET_BITS 64 feature test macro or an equivalent com-
piler command option.
The fstatvfs64() function returns descriptive information about a mounted fileset. The informa-
tion is returned in a statvfs64 structure, which has this definition from the sys/statvfs.h header
file:
typedef struct statvfs64 {
u_long f_bsize;
u_long f_frsize;
fsblkcnt64_t f_blocks;
fsblkcnt64_t f_bfree;
fsblkcnt64_t f_bavail;
fsfilcnt64_t f_files;
fsfilcnt64_t f_ffree;
fsfilcnt64_t f_favail;
u_long f_fsid;
char f_basetype[FSTYPSZ];
u_long f_flag;
u_long f_namemax;
char f_fstr[32];
fsblkcnt64_t f_bminavail;
fsblkcnt64_t f_bmaxavail;
u_long f_filler[5];
} statvfs64_t;
527186-023 Hewlett-Packard Company 3−53