stat.h 564 B

1234567891011121314151617181920212223242526
  1. /* copied from kernel definition, but with padding replaced
  2. * by the corresponding correctly-sized userspace types. */
  3. struct stat {
  4. dev_t st_dev;
  5. long __st_padding1[2];
  6. ino_t st_ino;
  7. mode_t st_mode;
  8. nlink_t st_nlink;
  9. uid_t st_uid;
  10. gid_t st_gid;
  11. dev_t st_rdev;
  12. long __st_padding2[2];
  13. off_t st_size;
  14. struct {
  15. long tv_sec;
  16. long tv_nsec;
  17. } __st_atim32, __st_mtim32, __st_ctim32;
  18. blksize_t st_blksize;
  19. long __st_padding3;
  20. blkcnt_t st_blocks;
  21. struct timespec st_atim;
  22. struct timespec st_mtim;
  23. struct timespec st_ctim;
  24. long __st_padding4[2];
  25. };