kernel_stat.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Stat structure for linux/v850 */
  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. __kernel_dev_t st_dev;
  10. __kernel_ino_t st_ino;
  11. __kernel_mode_t st_mode;
  12. __kernel_nlink_t st_nlink;
  13. __kernel_uid_t st_uid;
  14. __kernel_gid_t st_gid;
  15. __kernel_dev_t st_rdev;
  16. __kernel_off_t st_size;
  17. unsigned long st_blksize;
  18. unsigned long st_blocks;
  19. struct timespec st_atim;
  20. struct timespec st_mtim;
  21. struct timespec st_ctim;
  22. unsigned long __unused4;
  23. unsigned long __unused5;
  24. };
  25. struct kernel_stat64
  26. {
  27. __kernel_dev_t st_dev;
  28. unsigned long __unused0;
  29. unsigned long __unused1;
  30. __kernel_ino64_t st_ino;
  31. __kernel_mode_t st_mode;
  32. __kernel_nlink_t st_nlink;
  33. __kernel_uid_t st_uid;
  34. __kernel_gid_t st_gid;
  35. __kernel_dev_t st_rdev;
  36. unsigned long __unused2;
  37. unsigned long __unused3;
  38. __kernel_loff_t st_size;
  39. unsigned long st_blksize;
  40. unsigned long __unused4; /* future possible st_blocks high bits */
  41. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  42. struct timespec st_atim;
  43. struct timespec st_mtim;
  44. struct timespec st_ctim;
  45. };
  46. #endif /* _BITS_STAT_STRUCT_H */