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

statvfs64(2) OSS System Calls Reference Manual
NAME
statvfs64 - 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 statvfs64(
const char *path,
struct statvfs64 *buffer);
PARAMETERS
path Is a pathname that specifies any file within a mounted fileset.
buffer Points to a statvfs64 structure that is to hold the returned information for the
statvfs64() call.
DESCRIPTION
The statvfs64() function is similar to the statvfs() function except that, in addition to supporting
smaller files, the statvfs64() function supports files larger than approximately 2 gigabytes.
An application can explicitly call this function when you compile the application using the
#define _LARGEFILE64_SOURCE 1 feature test macro or an equivalent compiler command
option.
An application call to creat() is automatically mapped to this function when you compile the
application using the #define _FILE_OFFSET_BITS 64 feature test macro or an equivalent
compiler command option.
The statvfs64() function returns descriptive information about a mounted fileset. The informa-
tion is returned in a statvfs64 structure, which has the following definition from the sys/statvfs.h
header file:
typedef struct statvfs64 {
unsigned long f_bsize;
unsigned long f_frsize;
unsigned long long f_blocks;
unsigned long long f_bfree;
unsigned long long f_bavail;
unsigned long long f_files;
unsigned long long f_ffree;
unsigned long 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];
} statvfs64_t;
7524 Hewlett-Packard Company 527186-023