8 #if __STDC_VERSION__ >= 199901L
9 #define __restrict restrict
10 #elif !defined(__GNUC__)
14 #define __NEED_fsblkcnt_t
15 #define __NEED_fsfilcnt_t
16 #include <bits/alltypes.h>
21 unsigned long f_bsize, f_frsize;
22 fsblkcnt_t f_blocks, f_bfree, f_bavail;
23 fsfilcnt_t f_files, f_ffree, f_favail;
24 #if __BYTE_ORDER == __LITTLE_ENDIAN
26 unsigned :8*(2*sizeof(int)-sizeof(long));
28 unsigned :8*(2*sizeof(int)-sizeof(long));
31 unsigned long f_flag, f_namemax;
35 int statvfs (const char *__restrict, struct statvfs *__restrict);
36 int fstatvfs (int, struct statvfs *);
42 #define ST_SYNCHRONOUS 16
43 #define ST_MANDLOCK 64
46 #define ST_IMMUTABLE 512
47 #define ST_NOATIME 1024
48 #define ST_NODIRATIME 2048
50 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
51 #define statvfs64 statvfs
52 #define fstatvfs64 fstatvfs
53 #define fsblkcnt64_t fsblkcnt_t
54 #define fsfilcnt64_t fsfilcnt_t