1 #include <sys/statvfs.h>
3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
11 F(unsigned long, f_bsize
)
12 F(unsigned long, f_frsize
)
13 F(fsblkcnt_t
,f_blocks
)
15 F(fsblkcnt_t
,f_bavail
)
18 F(fsfilcnt_t
,f_favail
)
19 F(unsigned long, f_fsid
)
20 F(unsigned long, f_flag
)
21 F(unsigned long, f_namemax
)
25 {int(*p
)(int,struct statvfs
*) = fstatvfs
;}
26 {int(*p
)(const char*restrict
,struct statvfs
*restrict
) = statvfs
;}