kernel_stat.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 stat should look like... It turns out each arch has a
  5. * different opinion on the subject... */
  6. struct kernel_stat {
  7. unsigned long st_dev;
  8. unsigned long st_ino;
  9. unsigned short st_mode;
  10. unsigned short st_nlink;
  11. unsigned short st_uid;
  12. unsigned short st_gid;
  13. unsigned short st_rdev;
  14. unsigned short __pad2;
  15. unsigned long st_size;
  16. unsigned long st_blksize;
  17. unsigned long st_blocks;
  18. struct timespec st_atim;
  19. struct timespec st_mtim;
  20. struct timespec st_ctim;
  21. unsigned long __unused4;
  22. unsigned long __unused5;
  23. };
  24. struct kernel_stat64 {
  25. unsigned long long st_dev;
  26. unsigned char __pad0[4];
  27. #define _HAVE_STAT64___ST_INO
  28. unsigned long __st_ino;
  29. unsigned int st_mode;
  30. unsigned int st_nlink;
  31. unsigned long st_uid;
  32. unsigned long st_gid;
  33. unsigned short st_rdev;
  34. unsigned char __pad3[10];
  35. long long st_size;
  36. unsigned long st_blksize;
  37. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  38. unsigned long __pad4; /* future possible st_blocks high bits */
  39. struct timespec st_atim;
  40. struct timespec st_mtim;
  41. struct timespec st_ctim;
  42. unsigned long long st_ino;
  43. };
  44. #endif /* _BITS_STAT_STRUCT_H */