kernel_stat.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. unsigned long st_atime;
  20. unsigned long __unused1;
  21. unsigned long st_mtime;
  22. unsigned long __unused2;
  23. unsigned long st_ctime;
  24. unsigned long __unused3;
  25. unsigned long __unused4;
  26. unsigned long __unused5;
  27. };
  28. struct kernel_stat64
  29. {
  30. __kernel_dev_t st_dev;
  31. unsigned long __unused0;
  32. unsigned long __unused1;
  33. __kernel_ino64_t st_ino;
  34. __kernel_mode_t st_mode;
  35. __kernel_nlink_t st_nlink;
  36. __kernel_uid_t st_uid;
  37. __kernel_gid_t st_gid;
  38. __kernel_dev_t st_rdev;
  39. unsigned long __unused2;
  40. unsigned long __unused3;
  41. __kernel_loff_t st_size;
  42. unsigned long st_blksize;
  43. unsigned long __unused4; /* future possible st_blocks high bits */
  44. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  45. unsigned long st_atime;
  46. unsigned long __unused5;
  47. unsigned long st_mtime;
  48. unsigned long __unused6;
  49. unsigned long st_ctime;
  50. unsigned long __unused7; /* high 32 bits of ctime someday */
  51. };
  52. #endif /* _BITS_STAT_STRUCT_H */