Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (s and S) statvfs(2)
NAME
statvfs - Gets fileset information using a pathname
LIBRARY
G-series native OSS processes: system library
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/statvfs.h>
int statvfs(
const char *path,
struct statvfs *buffer);
PARAMETERS
path Is a pathname that specifies any file within a mounted fileset.
buffer Points to a statvfs structure that is to hold the returned information for the
statvfs() call.
DESCRIPTION
The statvfs() function returns descriptive information about a mounted fileset. The information is
returned in a statvfs structure, which has the following definition from the sys/statvfs.h header
file:
typedef struct statvfs {
u_long f_bsize;
u_long f_frsize;
fsblkcnt_t f_blocks;
fsblkcnt_t f_bfree;
fsblkcnt_t f_bavail;
fsfilcnt_t f_files;
fsfilcnt_t f_ffree;
fsfilcnt_t f_favail;
u_long f_fsid;
char f_basetype[FSTYPSZ];
u_long f_flag;
u_long f_namemax;
char f_fstr[32];
fsblkcnt_t f_bminavail;
fsblkcnt_t f_bmaxavail;
u_long f_filler[5];
} statvfs_t;
The fields in this structure have the following meanings and content:
f_bsize Fileset block size.
527186-023 Hewlett-Packard Company 7515