kernel_stat.h 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. struct timespec st_atim;
  36. struct timespec st_mtim;
  37. struct timespec st_ctim;
  38. long __unused[3];
  39. };
  40. #endif /* _BITS_STAT_STRUCT_H */