kernel_stat.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. unsigned long st_atime;
  18. unsigned long __unused1;
  19. unsigned long st_mtime;
  20. unsigned long __unused2;
  21. unsigned long st_ctime;
  22. unsigned long __unused3;
  23. unsigned long __unused4;
  24. unsigned long __unused5;
  25. };
  26. struct kernel_stat64 {
  27. unsigned short st_dev;
  28. unsigned char __pad0[10];
  29. unsigned long st_ino;
  30. unsigned int st_mode;
  31. unsigned int st_nlink;
  32. unsigned long st_uid;
  33. unsigned long st_gid;
  34. unsigned short st_rdev;
  35. unsigned char __pad3[10];
  36. long long st_size;
  37. unsigned long st_blksize;
  38. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  39. unsigned long __pad4; /* future possible st_blocks high bits */
  40. unsigned long st_atime;
  41. unsigned long __pad5;
  42. unsigned long st_mtime;
  43. unsigned long __pad6;
  44. unsigned long st_ctime;
  45. unsigned long __pad7; /* will be high 32 bits of ctime someday */
  46. unsigned long __unused1;
  47. unsigned long __unused2;
  48. };
  49. #endif /* _BITS_STAT_STRUCT_H */