Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (f - i) fstatvfs(2)
NAME
fstatvfs - 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 fstatvfs(
int ledes,
struct statvfs *buffer);
PARAMETERS
filedes Species an open le descriptor obtained from a successful call to the creat(),
dup(), dup2(), fcntl(),oropen() function.
buffer Points to a statvfs structure that is to hold the returned information for the
fstatvfs() call.
DESCRIPTION
The fstatvfs() function returns descriptive information about a mounted leset. The information
is returned in a statvfs structure, which has this denition from the sys/statvfs.h header le:
typedef struct statvfs {
unsigned long f_bsize;
unsigned long f_frsize;
unsigned long f_blocks;
unsigned long f_bfree;
unsigned long f_bavail;
unsigned long f_les;
unsigned long f_ffree;
unsigned long f_favail;
unsigned long f_fsid;
char f_basetype[FSTYPSZ];
unsigned long f_ag;
unsigned long f_namemax;
char f_fstr[32];
unsigned long f_bminavail;
unsigned long f_bmaxavail;
unsigned long f_ller[5];
} statvfs_t;
The elds in this structure have these meanings and content:
f_bsize Fileset block size:
527186-003 Hewlett-Packard Company 323