kernel_stat.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. struct timespec st_atim;
  20. struct timespec st_mtim;
  21. struct timespec st_ctim;
  22. unsigned long __unused4;
  23. unsigned long __unused5;
  24. };
  25. struct kernel_stat64 {
  26. unsigned char __pad0[6];
  27. unsigned short st_dev;
  28. unsigned char __pad1[2];
  29. #define _HAVE_STAT64___ST_INO
  30. unsigned long __st_ino;
  31. unsigned int st_mode;
  32. unsigned int st_nlink;
  33. unsigned long st_uid;
  34. unsigned long st_gid;
  35. unsigned char __pad2[6];
  36. unsigned short st_rdev;
  37. unsigned char __pad3[2];
  38. long long st_size;
  39. unsigned long st_blksize;
  40. unsigned long __pad4; /* future possible st_blocks high bits */
  41. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  42. struct timespec st_atim;
  43. struct timespec st_mtim;
  44. struct timespec st_ctim;
  45. unsigned long long st_ino;
  46. };
  47. #endif /* _BITS_STAT_STRUCT_H */