stat.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #ifndef __SPARC_STAT_H
  2. #define __SPARC_STAT_H
  3. #include <linux/types.h>
  4. #if defined(__sparc__) && defined(__arch64__)
  5. /* 64 bit sparc */
  6. struct stat {
  7. unsigned int st_dev;
  8. ino_t st_ino;
  9. mode_t st_mode;
  10. short st_nlink;
  11. uid_t st_uid;
  12. gid_t st_gid;
  13. unsigned int st_rdev;
  14. off_t st_size;
  15. time_t st_atime;
  16. time_t st_mtime;
  17. time_t st_ctime;
  18. off_t st_blksize;
  19. off_t st_blocks;
  20. unsigned long __unused4[2];
  21. };
  22. struct stat64 {
  23. unsigned long st_dev;
  24. unsigned long st_ino;
  25. unsigned long st_nlink;
  26. unsigned int st_mode;
  27. unsigned int st_uid;
  28. unsigned int st_gid;
  29. unsigned int __pad0;
  30. unsigned long st_rdev;
  31. long st_size;
  32. long st_blksize;
  33. long st_blocks;
  34. unsigned long st_atime;
  35. unsigned long st_atime_nsec;
  36. unsigned long st_mtime;
  37. unsigned long st_mtime_nsec;
  38. unsigned long st_ctime;
  39. unsigned long st_ctime_nsec;
  40. long __unused[3];
  41. };
  42. #else
  43. /* 32 bit sparc */
  44. struct stat {
  45. unsigned short st_dev;
  46. ino_t st_ino;
  47. mode_t st_mode;
  48. short st_nlink;
  49. unsigned short st_uid;
  50. unsigned short st_gid;
  51. unsigned short st_rdev;
  52. off_t st_size;
  53. time_t st_atime;
  54. unsigned long st_atime_nsec;
  55. time_t st_mtime;
  56. unsigned long st_mtime_nsec;
  57. time_t st_ctime;
  58. unsigned long st_ctime_nsec;
  59. off_t st_blksize;
  60. off_t st_blocks;
  61. unsigned long __unused4[2];
  62. };
  63. #define STAT_HAVE_NSEC 1
  64. struct stat64 {
  65. unsigned long long st_dev;
  66. unsigned long long st_ino;
  67. unsigned int st_mode;
  68. unsigned int st_nlink;
  69. unsigned int st_uid;
  70. unsigned int st_gid;
  71. unsigned long long st_rdev;
  72. unsigned char __pad3[8];
  73. long long st_size;
  74. unsigned int st_blksize;
  75. unsigned char __pad4[8];
  76. unsigned int st_blocks;
  77. unsigned int st_atime;
  78. unsigned int st_atime_nsec;
  79. unsigned int st_mtime;
  80. unsigned int st_mtime_nsec;
  81. unsigned int st_ctime;
  82. unsigned int st_ctime_nsec;
  83. unsigned int __unused4;
  84. unsigned int __unused5;
  85. };
  86. #endif /* defined(__sparc__) && defined(__arch64__) */
  87. #endif /* __SPARC_STAT_H */