kernel_stat.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 int st_ino;
  9. unsigned int st_mode;
  10. unsigned int st_nlink;
  11. unsigned int st_uid;
  12. unsigned int st_gid;
  13. unsigned int st_rdev;
  14. long int st_size;
  15. unsigned long st_atime;
  16. unsigned long st_mtime;
  17. unsigned long st_ctime;
  18. unsigned int st_blksize;
  19. int st_blocks;
  20. unsigned int st_flags;
  21. unsigned int st_gen;
  22. };
  23. struct kernel_stat64 {
  24. unsigned long st_dev;
  25. unsigned long st_ino;
  26. unsigned long st_rdev;
  27. long st_size;
  28. unsigned long st_blocks;
  29. unsigned int st_mode;
  30. unsigned int st_uid;
  31. unsigned int st_gid;
  32. unsigned int st_blksize;
  33. unsigned int st_nlink;
  34. unsigned int __pad0;
  35. unsigned long st_atime;
  36. unsigned long st_atimensec;
  37. unsigned long st_mtime;
  38. unsigned long st_mtimensec;
  39. unsigned long st_ctime;
  40. unsigned long st_ctimensec;
  41. long __unused[3];
  42. };
  43. #endif /* _BITS_STAT_STRUCT_H */