stat.h 551 B

123456789101112131415161718192021222324252627
  1. /* copied from kernel definition, but with padding replaced
  2. * by the corresponding correctly-sized userspace types. */
  3. struct stat
  4. {
  5. dev_t st_dev;
  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. short __st_rdev_padding;
  13. off_t st_size;
  14. blksize_t st_blksize;
  15. blkcnt_t st_blocks;
  16. struct timespec st_atim;
  17. struct timespec st_mtim;
  18. struct timespec st_ctim;
  19. unsigned __unused[2];
  20. };
  21. #ifdef _BSD_SOURCE
  22. #define st_atimespec st_atim
  23. #define st_mtimespec st_mtim
  24. #define st_ctimespec st_ctim
  25. #endif