1 #ifndef _SYS_VFS_H_ 2 #define _SYS_VFS_H_ 3 4 struct statfs { 5 long f_type; /* type of filesystem (see below) */ 6 long f_bsize; /* optimal transfer block size */ 7 long f_blocks; /* total data blocks in file system */ 8 long f_bfree; /* free blocks in fs */ 9 long f_bavail; /* free blocks avail to non-superuser */ 10 long f_files; /* total file nodes in file system */ 11 long f_ffree; /* free file nodes in fs */ 12 long f_fsid; /* file system id */ 13 long f_namelen; /* maximum length of filenames */ 14 long f_spare[6]; /* spare for later */ 15 }; 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif /* __cplusplus */ 20 21 int statfs (const char *__path, struct statfs *__buf); 22 int fstatfs (int __fd, struct statfs *__buf); 23 24 #ifdef __cplusplus 25 }; 26 #endif /* __cplusplus */ 27 28 #endif /*_SYS_VFS_H_*/ |