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

System Functions (s and S) statvfs(2)
NAME
statvfs - Gets leset information using a pathname
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/statvfs.h>
int statvfs(
const char *path,
struct statvfs *buffer);
PARAMETERS
path Is a pathname that species any le within a mounted leset.
buffer Points to a statvfs structure that is to hold the returned informa-
tion for the statvfs() call.
DESCRIPTION
The statvfs() function returns descriptive information about a mounted leset. The information is
returned in a statvfs structure, which has the following 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 the following meanings and content:
f_bsize Fileset block size.
527186-003 Hewlett-Packard Company 7169