kernel_stat.h 1.1 KB

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