1 #ifndef _SYS_STATFS_H 2 #define _SYS_STATFS_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <features.h> 9 10 #include <sys/statvfs.h> 11 12 typedef struct __fsid_t { 13 int __val[2]; 14 } fsid_t; 15 16 #include <bits/statfs.h> 17 18 int statfs (const char *, struct statfs *); 19 int fstatfs (int, struct statfs *); 20 21 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) 22 #define statfs64 statfs 23 #define fstatfs64 fstatfs 24 #define fsblkcnt64_t fsblkcnt_t 25 #define fsfilcnt64_t fsfilcnt_t 26 #endif 27 28 #define TMPFS_MAGIC 0x01021994 29 #define MSDOS_SUPER_MAGIC 0x4d44 30 #define NFS_SUPER_MAGIC 0x6969 31 #define PROCFS_MAGIC 0x434f5250 32 #define JFFS2_SUPER_MAGIC 0x72b6 33 #define ZPFS_MAGIC 0xa000e93 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 #endif 40