kernel_stat.h 1.5 KB

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 long st_dev;
  8. unsigned long st_ino;
  9. unsigned int st_mode;
  10. unsigned int st_nlink;
  11. unsigned int st_uid;
  12. unsigned int st_gid;
  13. unsigned long st_rdev;
  14. long st_size;
  15. unsigned long st_blksize;
  16. unsigned long st_blocks;
  17. struct timespec st_atim;
  18. struct timespec st_mtim;
  19. struct timespec st_ctim;
  20. unsigned long __unused4;
  21. unsigned long __unused5;
  22. };
  23. struct kernel_stat64 {
  24. unsigned long long st_dev; /* Device */
  25. unsigned long long st_ino; /* File serial number */
  26. unsigned int st_mode; /* File mode. */
  27. unsigned int st_nlink; /* Link count. */
  28. unsigned int st_uid; /* User ID of the file's owner. */
  29. unsigned int st_gid; /* Group ID of the file's group. */
  30. unsigned long long st_rdev; /* Device number, if device. */
  31. long long st_size; /* Size of file, in bytes. */
  32. unsigned long st_blksize; /* Optimal block size for I/O. */
  33. unsigned long __uclibc_unused2;
  34. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  35. struct timespec st_atim; /* Time of last access. */
  36. struct timespec st_mtim; /* Time of last modification. */
  37. struct timespec st_ctim; /* Time of last status change. */
  38. unsigned long __uclibc_unused4;
  39. unsigned long __uclibc_unused5;
  40. };
  41. #endif /* _BITS_STAT_STRUCT_H */