kernel_stat.h 2.3 KB

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