stat.h 520 B

123456789101112131415161718192021222324
  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. ino_t st_ino;
  6. mode_t st_mode;
  7. nlink_t st_nlink;
  8. uid_t st_uid;
  9. gid_t st_gid;
  10. dev_t st_rdev;
  11. short __st_rdev_padding;
  12. off_t st_size;
  13. blksize_t st_blksize;
  14. blkcnt_t st_blocks;
  15. struct {
  16. long tv_sec;
  17. long tv_nsec;
  18. } __st_atim32, __st_mtim32, __st_ctim32;
  19. unsigned __unused[2];
  20. struct timespec st_atim;
  21. struct timespec st_mtim;
  22. struct timespec st_ctim;
  23. };