kernel_stat.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _BITS_STAT_STRUCT_H
  2. #define _BITS_STAT_STRUCT_H
  3. /*
  4. * This file provides struct stat, taken from kernel 2.6.4. Verified
  5. * to match kernel 2.6.22.
  6. */
  7. struct kernel_stat {
  8. unsigned long st_dev;
  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 long st_rdev;
  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 long long st_ino;
  27. unsigned int st_mode;
  28. unsigned int st_nlink;
  29. unsigned long st_uid;
  30. unsigned long st_gid;
  31. unsigned long long st_rdev;
  32. long long st_size;
  33. unsigned long __pad1;
  34. unsigned long st_blksize;
  35. unsigned long long st_blocks;
  36. struct timespec st_atim;
  37. struct timespec st_mtim;
  38. struct timespec st_ctim;
  39. unsigned long __unused1;
  40. unsigned long __unused2;
  41. };
  42. #endif /* _BITS_STAT_STRUCT_H */