Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (f - i) fstatvfs(2)
NAME
fstatvfs - 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 fstatvfs(
int filedes,
struct statvfs *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 statvfs structure that is to hold the returned information for the
fstatvfs() call.
DESCRIPTION
The fstatvfs() function returns descriptive information about a mounted fileset. The information
is returned in a statvfs structure, which has this definition from the sys/statvfs.h header file:
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_files;
unsigned long f_ffree;
unsigned long f_favail;
unsigned long f_fsid;
char f_basetype[FSTYPSZ];
unsigned long f_flag;
unsigned long f_namemax;
char f_fstr[32];
unsigned long f_bminavail;
unsigned long f_bmaxavail;
unsigned long f_filler[5];
} statvfs_t;
The fields in this structure have these meanings and content:
f_bsize Fileset block size:
527186-023 Hewlett-Packard Company 3−45