kernel_stat.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 short st_dev;
  8. unsigned short __pad1;
  9. unsigned long st_ino;
  10. unsigned short st_mode;
  11. unsigned short st_nlink;
  12. unsigned short st_uid;
  13. unsigned short st_gid;
  14. unsigned short st_rdev;
  15. unsigned short __pad2;
  16. unsigned long st_size;
  17. unsigned long st_blksize;
  18. unsigned long st_blocks;
  19. unsigned long st_atime;
  20. unsigned long __unused1;
  21. unsigned long st_mtime;
  22. unsigned long __unused2;
  23. unsigned long st_ctime;
  24. unsigned long __unused3;
  25. unsigned long __unused4;
  26. unsigned long __unused5;
  27. };
  28. struct kernel_stat64 {
  29. unsigned char __pad0[6];
  30. unsigned short st_dev;
  31. unsigned char __pad1[2];
  32. #define _HAVE_STAT64___ST_INO
  33. unsigned long __st_ino;
  34. unsigned int st_mode;
  35. unsigned int st_nlink;
  36. unsigned long st_uid;
  37. unsigned long st_gid;
  38. unsigned char __pad2[6];
  39. unsigned short st_rdev;
  40. unsigned char __pad3[2];
  41. long long st_size;
  42. unsigned long st_blksize;
  43. unsigned long __pad4; /* future possible st_blocks high bits */
  44. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  45. unsigned long st_atime;
  46. unsigned long __pad5;
  47. unsigned long st_mtime;
  48. unsigned long __pad6;
  49. unsigned long st_ctime;
  50. unsigned long __pad7; /* will be high 32 bits of ctime someday */
  51. unsigned long long st_ino;
  52. };
  53. #endif /* _BITS_STAT_STRUCT_H */