#include <sys/statvfs.h>

sys/statvfs.h

sys/statvfs.h
2 macros · 2 functions · 1 struct

structstatvfs

Following structure is used as a statvfs/fstatvfs function parameter
size 64, align 8
unsigned longf_bsizeFile system block size
unsigned longf_frsizeFundamental file system block size
fsblkcnt_tf_blocksBlocks on FS in units of f_frsize
fsblkcnt_tf_bfreeFree blocks
fsblkcnt_tf_bavailBlocks available to non-root
fsfilcnt_tf_filesTotal inodes
fsfilcnt_tf_ffreeFree inodes
fsfilcnt_tf_favailFree inodes for non-root
unsigned longf_fsidFilesystem ID
unsigned longf_flagBit mask of values
unsigned longf_namemaxMax file name length

macroST_RDONLY

Defined bits for f_flag field value
#define ST_RDONLY 0x00000001
Read-only file system

macroST_NOSUID

#define ST_NOSUID 0x00000002
Does not honor setuid/setgid

functionfstatvfs

int fstatvfs(int, struct statvfs *)
man page · July 13, 2002
fstatvfs(3) — retrieve file system information

functionstatvfs

int statvfs(const char * __restrict, struct statvfs * __restrict)
man page · July 13, 2002
statvfs(3) — retrieve file system information