stat.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef _PARISC_STAT_H
  2. #define _PARISC_STAT_H
  3. #include <linux/types.h>
  4. struct stat {
  5. unsigned int st_dev; /* dev_t is 32 bits on parisc */
  6. unsigned int st_ino; /* 32 bits */
  7. unsigned short st_mode; /* 16 bits */
  8. unsigned short st_nlink; /* 16 bits */
  9. unsigned short st_reserved1; /* old st_uid */
  10. unsigned short st_reserved2; /* old st_gid */
  11. unsigned int st_rdev;
  12. signed int st_size;
  13. signed int st_atime;
  14. unsigned int st_atime_nsec;
  15. signed int st_mtime;
  16. unsigned int st_mtime_nsec;
  17. signed int st_ctime;
  18. unsigned int st_ctime_nsec;
  19. int st_blksize;
  20. int st_blocks;
  21. unsigned int __unused1; /* ACL stuff */
  22. unsigned int __unused2; /* network */
  23. unsigned int __unused3; /* network */
  24. unsigned int __unused4; /* cnodes */
  25. unsigned short __unused5; /* netsite */
  26. short st_fstype;
  27. unsigned int st_realdev;
  28. unsigned short st_basemode;
  29. unsigned short st_spareshort;
  30. unsigned int st_uid;
  31. unsigned int st_gid;
  32. unsigned int st_spare4[3];
  33. };
  34. #define STAT_HAVE_NSEC
  35. /* This is the struct that 32-bit userspace applications are expecting.
  36. * How 64-bit apps are going to be compiled, I have no idea. But at least
  37. * this way, we don't have a wrapper in the kernel.
  38. */
  39. struct stat64 {
  40. unsigned long long st_dev;
  41. unsigned int __pad1;
  42. unsigned int __st_ino; /* Not actually filled in */
  43. unsigned int st_mode;
  44. unsigned int st_nlink;
  45. unsigned int st_uid;
  46. unsigned int st_gid;
  47. unsigned long long st_rdev;
  48. unsigned int __pad2;
  49. signed long long st_size;
  50. signed int st_blksize;
  51. signed long long st_blocks;
  52. signed int st_atime;
  53. unsigned int st_atime_nsec;
  54. signed int st_mtime;
  55. unsigned int st_mtime_nsec;
  56. signed int st_ctime;
  57. unsigned int st_ctime_nsec;
  58. unsigned long long st_ino;
  59. };
  60. #endif