statfs.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_flags;
  30. long f_spare[5];
  31. };
  32. #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
  33. /*
  34. * Unlike the traditional version the LFAPI version has none of the ABI junk
  35. */
  36. struct statfs64 {
  37. __u32 f_type;
  38. __u32 f_bsize;
  39. __u32 f_frsize; /* Fragment size - unsupported */
  40. __u32 __pad;
  41. __u64 f_blocks;
  42. __u64 f_bfree;
  43. __u64 f_files;
  44. __u64 f_ffree;
  45. __u64 f_bavail;
  46. __kernel_fsid_t f_fsid;
  47. __u32 f_namelen;
  48. __u32 f_flags;
  49. __u32 f_spare[5];
  50. };
  51. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  52. #if _MIPS_SIM == _MIPS_SIM_ABI64
  53. struct statfs64 { /* Same as struct statfs */
  54. long f_type;
  55. long f_bsize;
  56. long f_frsize; /* Fragment size - unsupported */
  57. long f_blocks;
  58. long f_bfree;
  59. long f_files;
  60. long f_ffree;
  61. long f_bavail;
  62. /* Linux specials */
  63. __kernel_fsid_t f_fsid;
  64. long f_namelen;
  65. long f_flags;
  66. long f_spare[5];
  67. };
  68. struct compat_statfs64 {
  69. __u32 f_type;
  70. __u32 f_bsize;
  71. __u32 f_frsize; /* Fragment size - unsupported */
  72. __u32 __pad;
  73. __u64 f_blocks;
  74. __u64 f_bfree;
  75. __u64 f_files;
  76. __u64 f_ffree;
  77. __u64 f_bavail;
  78. __kernel_fsid_t f_fsid;
  79. __u32 f_namelen;
  80. __u32 f_flags;
  81. __u32 f_spare[5];
  82. };
  83. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
  84. #endif /* _ASM_STATFS_H */