kernel_stat.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 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 short st_dev;
  27. unsigned char __pad0[10];
  28. #define _HAVE_STAT64___ST_INO 1
  29. unsigned long __st_ino;
  30. unsigned int st_mode;
  31. unsigned int st_nlink;
  32. unsigned long st_uid;
  33. unsigned long st_gid;
  34. unsigned short st_rdev;
  35. unsigned char __pad3[10];
  36. long long st_size;
  37. unsigned long st_blksize;
  38. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  39. unsigned long __pad4; /* future possible st_blocks high bits */
  40. struct timespec st_atim;
  41. struct timespec st_mtim;
  42. struct timespec st_ctim;
  43. unsigned long long st_ino;
  44. };
  45. #endif /* _BITS_STAT_STRUCT_H */