kernel_stat.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Stat structure for linux/microblaze*/
  2. #ifndef _BITS_STAT_STRUCT_H
  3. #define _BITS_STAT_STRUCT_H
  4. struct kernel_stat
  5. {
  6. unsigned long st_dev; /* Device. */
  7. unsigned long st_ino; /* File serial number. */
  8. unsigned int st_mode; /* File mode. */
  9. unsigned int st_nlink; /* Link count. */
  10. unsigned int st_uid; /* User ID of the file's owner. */
  11. unsigned int st_gid; /* Group ID of the file's group. */
  12. unsigned long st_rdev; /* Device number, if device. */
  13. unsigned long __pad1;
  14. long st_size; /* Size of file, in bytes. */
  15. int st_blksize; /* Optimal block size for I/O. */
  16. int __pad2;
  17. long st_blocks; /* Number 512-byte blocks allocated. */
  18. struct timespec st_atim;
  19. struct timespec st_mtim;
  20. struct timespec st_ctim;
  21. unsigned int __unused4;
  22. unsigned int __unused5;
  23. };
  24. struct kernel_stat64
  25. {
  26. unsigned long long st_dev; /* Device. */
  27. unsigned long long st_ino; /* File serial number. */
  28. unsigned int st_mode; /* File mode. */
  29. unsigned int st_nlink; /* Link count. */
  30. unsigned int st_uid; /* User ID of the file's owner. */
  31. unsigned int st_gid; /* Group ID of the file's group. */
  32. unsigned long long st_rdev; /* Device number, if device. */
  33. unsigned long long __pad1;
  34. long long st_size; /* Size of file, in bytes. */
  35. int st_blksize; /* Optimal block size for I/O. */
  36. int __pad2;
  37. long long st_blocks; /* Number 512-byte blocks allocated. */
  38. struct timespec st_atim;
  39. struct timespec st_mtim;
  40. struct timespec st_ctim;
  41. unsigned int __unused4;
  42. unsigned int __unused5;
  43. };
  44. #endif /* _BITS_STAT_STRUCT_H */