statfs.h 476 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _SYS_STATFS_H
  2. #define _SYS_STATFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <sys/statvfs.h>
  7. typedef struct {
  8. int __val[2];
  9. } fsid_t;
  10. #include <bits/statfs.h>
  11. int statfs (const char *, struct statfs *);
  12. int fstatfs (int, struct statfs *);
  13. #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
  14. #define statfs64 statfs
  15. #define fstatfs64 fstatfs
  16. #define fsblkcnt64_t fsblkcnt_t
  17. #define fsfilcnt64_t fsfilcnt_t
  18. #endif
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif