stat.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef _ASM_STAT_H
  2. #define _ASM_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 long st_dev;
  18. unsigned long st_ino;
  19. unsigned short st_mode;
  20. unsigned short st_nlink;
  21. unsigned short st_uid;
  22. unsigned short st_gid;
  23. unsigned long st_rdev;
  24. unsigned long st_size;
  25. unsigned long st_blksize;
  26. unsigned long st_blocks;
  27. unsigned long st_atime;
  28. unsigned long st_atime_nsec;
  29. unsigned long st_mtime;
  30. unsigned long st_mtime_nsec;
  31. unsigned long st_ctime;
  32. unsigned long st_ctime_nsec;
  33. unsigned long __unused4;
  34. unsigned long __unused5;
  35. };
  36. /* This matches struct stat64 in glibc2.1, hence the absolutely
  37. * insane amounts of padding around dev_t's.
  38. */
  39. struct stat64 {
  40. unsigned long long st_dev;
  41. unsigned char __pad0[4];
  42. #define STAT64_HAS_BROKEN_ST_INO 1
  43. unsigned long __st_ino;
  44. unsigned int st_mode;
  45. unsigned int st_nlink;
  46. unsigned long st_uid;
  47. unsigned long st_gid;
  48. unsigned long long st_rdev;
  49. unsigned char __pad3[4];
  50. long long st_size;
  51. unsigned long st_blksize;
  52. unsigned long st_blocks; /* Number 512-byte blocks allocated. */
  53. unsigned long __pad4; /* future possible st_blocks high bits */
  54. unsigned long st_atime;
  55. unsigned long st_atime_nsec;
  56. unsigned long st_mtime;
  57. unsigned int st_mtime_nsec;
  58. unsigned long st_ctime;
  59. unsigned long st_ctime_nsec;
  60. unsigned long long st_ino;
  61. };
  62. #define STAT_HAVE_NSEC 1
  63. #endif /* _ASM_STAT_H */