kernel_stat.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #ifndef _BITS_STAT_STRUCT_H
  2. #define _BITS_STAT_STRUCT_H
  3. /* This file provides whatever this particular arch's kernel thinks
  4. * struct kernel_stat should look like... It turns out each arch has a
  5. * different opinion on the subject... */
  6. struct kernel_stat {
  7. unsigned char __pad1[6];
  8. unsigned short st_dev;
  9. unsigned long __pad2;
  10. unsigned long st_ino;
  11. unsigned short __pad3;
  12. unsigned short st_mode;
  13. unsigned short __pad4;
  14. unsigned short st_nlink;
  15. unsigned short __pad5;
  16. unsigned short st_uid;
  17. unsigned short __pad6;
  18. unsigned short st_gid;
  19. unsigned char __pad7[6];
  20. unsigned short st_rdev;
  21. unsigned long __pad8;
  22. unsigned long st_size;
  23. unsigned long __pad9; /* align 64-bit st_blocks to 2-word */
  24. unsigned long st_blksize;
  25. unsigned long __pad10; /* future possible st_blocks high bits */
  26. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  27. unsigned long __unused1;
  28. unsigned long st_atime;
  29. unsigned long __unused2;
  30. unsigned long st_mtime;
  31. unsigned long __unused3;
  32. unsigned long st_ctime;
  33. unsigned long long __unused4;
  34. };
  35. struct kernel_stat64 {
  36. unsigned char __pad1[6];
  37. unsigned short st_dev;
  38. unsigned long long st_ino;
  39. unsigned int st_mode;
  40. unsigned int st_nlink;
  41. unsigned long st_uid;
  42. unsigned long st_gid;
  43. unsigned char __pad2[6];
  44. unsigned short st_rdev;
  45. long long st_size;
  46. unsigned long __pad3; /* align 64-bit st_blocks to 2-word */
  47. unsigned long st_blksize;
  48. unsigned long __pad4; /* future possible st_blocks high bits */
  49. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  50. unsigned long __unused1;
  51. unsigned long st_atime;
  52. unsigned long __unused2;
  53. unsigned long st_mtime;
  54. unsigned long __unused3; /* will be high 32 bits of ctime someday */
  55. unsigned long st_ctime;
  56. unsigned long long __unused4;
  57. };
  58. #endif /* _BITS_STAT_STRUCT_H */