Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. struct stat {
  2. dev_t st_dev; /* ID of device containing file */
  3. ino_t st_ino; /* inode number */
  4. mode_t st_mode; /* protection */
  5. nlink_t st_nlink; /* number of hard links */
  6. uid_t st_uid; /* user ID of owner */
  7. gid_t st_gid; /* group ID of owner */
  8. dev_t st_rdev; /* device ID (if special file) */
  9. off_t st_size; /* total size, in bytes */
  10. blksize_t st_blksize; /* blocksize for filesystem I/O */
  11. blkcnt_t st_blocks; /* number of 512B blocks allocated */
  12.  
  13. /* Since Linux 2.6, the kernel supports nanosecond
  14. precision for the following timestamp fields.
  15. For the details before Linux 2.6, see NOTES. */
  16.  
  17. struct timespec st_atim; /* time of last access */
  18. struct timespec st_mtim; /* time of last modification */
  19. struct timespec st_ctim; /* time of last status change */
  20.  
  21. #define st_atime st_atim.tv_sec /* Backward compatibility */
  22. #define st_mtime st_mtim.tv_sec
  23. #define st_ctime st_ctim.tv_sec
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement