stat.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef _M68K_STAT_H
  2. #define _M68K_STAT_H
  3. struct __old_kernel_stat {
  4. unsigned short st_dev;
  5. unsigned short st_ino;
  6. unsigned short st_mode;
  7. unsigned short st_nlink;
  8. unsigned short st_uid;
  9. unsigned short st_gid;
  10. unsigned short st_rdev;
  11. unsigned long st_size;
  12. unsigned long st_atime;
  13. unsigned long st_mtime;
  14. unsigned long st_ctime;
  15. };
  16. struct stat {
  17. unsigned short st_dev;
  18. unsigned short __pad1;
  19. unsigned long st_ino;
  20. unsigned short st_mode;
  21. unsigned short st_nlink;
  22. unsigned short st_uid;
  23. unsigned short st_gid;
  24. unsigned short st_rdev;
  25. unsigned short __pad2;
  26. unsigned long st_size;
  27. unsigned long st_blksize;
  28. unsigned long st_blocks;
  29. unsigned long st_atime;
  30. unsigned long __unused1;
  31. unsigned long st_mtime;
  32. unsigned long __unused2;
  33. unsigned long st_ctime;
  34. unsigned long __unused3;
  35. unsigned long __unused4;
  36. unsigned long __unused5;
  37. };
  38. /* This matches struct stat64 in glibc2.1, hence the absolutely
  39. * insane amounts of padding around dev_t's.
  40. */
  41. struct stat64 {
  42. unsigned long long st_dev;
  43. unsigned char __pad1[2];
  44. #define STAT64_HAS_BROKEN_ST_INO 1
  45. unsigned long __st_ino;
  46. unsigned int st_mode;
  47. unsigned int st_nlink;
  48. unsigned long st_uid;
  49. unsigned long st_gid;
  50. unsigned long long st_rdev;
  51. unsigned char __pad3[2];
  52. long long st_size;
  53. unsigned long st_blksize;
  54. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  55. unsigned long st_atime;
  56. unsigned long st_atime_nsec;
  57. unsigned long st_mtime;
  58. unsigned long st_mtime_nsec;
  59. unsigned long st_ctime;
  60. unsigned long st_ctime_nsec;
  61. unsigned long long st_ino;
  62. };
  63. #endif /* _M68K_STAT_H */