kernel_stat.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 long st_ino;
  9. unsigned short st_mode;
  10. short st_nlink;
  11. unsigned short st_uid;
  12. unsigned short st_gid;
  13. unsigned short st_rdev;
  14. long st_size;
  15. struct timespec st_atim;
  16. struct timespec st_mtim;
  17. struct timespec st_ctim;
  18. long st_blksize;
  19. long st_blocks;
  20. unsigned long __unused4[2];
  21. };
  22. struct kernel_stat64 {
  23. unsigned long long st_dev;
  24. unsigned long long st_ino;
  25. unsigned int st_mode;
  26. unsigned int st_nlink;
  27. unsigned int st_uid;
  28. unsigned int st_gid;
  29. unsigned long long st_rdev;
  30. unsigned char __pad3[8];
  31. long long st_size;
  32. unsigned int st_blksize;
  33. unsigned char __pad4[8];
  34. unsigned int st_blocks;
  35. struct timespec st_atim;
  36. struct timespec st_mtim;
  37. struct timespec st_ctim;
  38. unsigned int __unused4;
  39. unsigned int __unused5;
  40. };
  41. #endif /* _BITS_STAT_STRUCT_H */