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