kernel_stat.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /* This file provides whatever this particular arch's kernel thinks
  7. * struct kernel_stat should look like... It turns out each arch has a
  8. * different opinion on the subject... */
  9. struct kernel_stat {
  10. unsigned long st_dev;
  11. unsigned long st_ino;
  12. unsigned int st_mode;
  13. unsigned int st_nlink;
  14. unsigned int st_uid;
  15. unsigned int st_gid;
  16. unsigned long st_rdev;
  17. long st_size;
  18. unsigned long st_blksize;
  19. unsigned long st_blocks;
  20. struct timespec st_atim;
  21. struct timespec st_mtim;
  22. struct timespec st_ctim;
  23. unsigned long __unused4;
  24. unsigned long __unused5;
  25. };
  26. struct kernel_stat64 {
  27. unsigned long long st_dev; /* Device */
  28. unsigned long long st_ino; /* File serial number */
  29. unsigned int st_mode; /* File mode. */
  30. unsigned int st_nlink; /* Link count. */
  31. unsigned int st_uid; /* User ID of the file's owner. */
  32. unsigned int st_gid; /* Group ID of the file's group. */
  33. unsigned long long st_rdev; /* Device number, if device. */
  34. long long st_size; /* Size of file, in bytes. */
  35. unsigned long st_blksize; /* Optimal block size for I/O. */
  36. unsigned long __unused2;
  37. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  38. struct timespec st_atim; /* Time of last access. */
  39. struct timespec st_mtim; /* Time of last modification. */
  40. struct timespec st_ctim; /* Time of last status change. */
  41. unsigned long __unused4;
  42. unsigned long __unused5;
  43. };
  44. #endif /* _BITS_STAT_STRUCT_H */