kernel_stat.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 int 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 int 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;
  21. unsigned long __unused5;
  22. };
  23. struct kernel_stat64 {
  24. unsigned long st_dev;
  25. unsigned long st_ino;
  26. unsigned long st_nlink;
  27. unsigned int st_mode;
  28. unsigned int st_uid;
  29. unsigned int st_gid;
  30. unsigned int __pad2;
  31. unsigned long st_rdev;
  32. long st_size;
  33. long st_blksize;
  34. long st_blocks;
  35. struct timespec st_atim;
  36. struct timespec st_mtim;
  37. struct timespec st_ctim;
  38. long __unused4;
  39. long __unused5;
  40. long __unused6;
  41. };
  42. #endif /* _BITS_STAT_STRUCT_H */