statfs.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1995, 1999 by Ralf Baechle
  7. */
  8. #ifndef _ASM_STATFS_H
  9. #define _ASM_STATFS_H
  10. #include <linux/posix_types.h>
  11. #include <asm/sgidefs.h>
  12. #ifndef __KERNEL_STRICT_NAMES
  13. #include <linux/types.h>
  14. typedef __kernel_fsid_t fsid_t;
  15. #endif
  16. struct statfs {
  17. long f_type;
  18. #define f_fstyp f_type
  19. long f_bsize;
  20. long f_frsize; /* Fragment size - unsupported */
  21. long f_blocks;
  22. long f_bfree;
  23. long f_files;
  24. long f_ffree;
  25. long f_bavail;
  26. /* Linux specials */
  27. __kernel_fsid_t f_fsid;
  28. long f_namelen;
  29. long f_spare[6];
  30. };
  31. #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
  32. /*
  33. * Unlike the traditional version the LFAPI version has none of the ABI junk
  34. */
  35. struct statfs64 {
  36. __u32 f_type;
  37. __u32 f_bsize;
  38. __u32 f_frsize; /* Fragment size - unsupported */
  39. __u32 __pad;
  40. __u64 f_blocks;
  41. __u64 f_bfree;
  42. __u64 f_files;
  43. __u64 f_ffree;
  44. __u64 f_bavail;
  45. __kernel_fsid_t f_fsid;
  46. __u32 f_namelen;
  47. __u32 f_spare[6];
  48. };
  49. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  50. #if _MIPS_SIM == _MIPS_SIM_ABI64
  51. struct statfs64 { /* Same as struct statfs */
  52. long f_type;
  53. long f_bsize;
  54. long f_frsize; /* Fragment size - unsupported */
  55. long f_blocks;
  56. long f_bfree;
  57. long f_files;
  58. long f_ffree;
  59. long f_bavail;
  60. /* Linux specials */
  61. __kernel_fsid_t f_fsid;
  62. long f_namelen;
  63. long f_spare[6];
  64. };
  65. struct compat_statfs64 {
  66. __u32 f_type;
  67. __u32 f_bsize;
  68. __u32 f_frsize; /* Fragment size - unsupported */
  69. __u32 __pad;
  70. __u64 f_blocks;
  71. __u64 f_bfree;
  72. __u64 f_files;
  73. __u64 f_ffree;
  74. __u64 f_bavail;
  75. __kernel_fsid_t f_fsid;
  76. __u32 f_namelen;
  77. __u32 f_spare[6];
  78. };
  79. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
  80. #endif /* _ASM_STATFS_H */