kernel_stat.h 1.6 KB

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