Open System Services System Calls Reference Manual (G06.25+, H06.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 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 informa-
tion 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 {
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 the following meanings and content:
f_bsize Fileset block size.
527186-003 Hewlett-Packard Company 7−169