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

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 {
u_long f_bsize;
u_long f_frsize;
fsblkcnt_t f_blocks;
fsblkcnt_t f_bfree;
fsblkcnt_t f_bavail;
fslcnt_t f_les;
fslcnt_t f_ffree;
fslcnt_t f_favail;
u_long f_fsid;
char f_basetype[FSTYPSZ];
u_long f_ag;
u_long f_namemax;
char f_fstr[32];
fsblkcnt_t f_bminavail;
fsblkcnt_t f_bmaxavail;
u_long f_ller[5];
} statvfs_t;
The elds in this structure have the following meanings and content:
f_bsize Fileset block size.
527186-007 Hewlett-Packard Company 7403