kernel_stat.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Stat structure for Linux/sh64 */
  2. #ifndef _BITS_STAT_STRUCT_H
  3. #define _BITS_STAT_STRUCT_H
  4. struct kernel_stat {
  5. unsigned short st_dev;
  6. unsigned short __pad1;
  7. unsigned long st_ino;
  8. unsigned short st_mode;
  9. unsigned short st_nlink;
  10. unsigned short st_uid;
  11. unsigned short st_gid;
  12. unsigned short st_rdev;
  13. unsigned short __pad2;
  14. unsigned long st_size;
  15. unsigned long st_blksize;
  16. unsigned long st_blocks;
  17. struct timespec st_atim;
  18. struct timespec st_mtim;
  19. struct timespec st_ctim;
  20. unsigned long __unused4;
  21. unsigned long __unused5;
  22. };
  23. struct kernel_stat64 {
  24. unsigned short st_dev;
  25. unsigned char __pad0[10];
  26. unsigned long st_ino;
  27. unsigned int st_mode;
  28. unsigned int st_nlink;
  29. unsigned long st_uid;
  30. unsigned long st_gid;
  31. unsigned short st_rdev;
  32. unsigned char __pad3[10];
  33. long long st_size;
  34. unsigned long st_blksize;
  35. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  36. unsigned long __pad4; /* future possible st_blocks high bits */
  37. struct timespec st_atim;
  38. struct timespec st_mtim;
  39. struct timespec st_ctim;
  40. unsigned long __unused1;
  41. unsigned long __unused2;
  42. };
  43. #endif /* _BITS_STAT_STRUCT_H */