Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. struct stat
  2. {
  3. __dev_t st_dev; /* Device. */
  4. #ifndef __x86_64__
  5. unsigned short int __pad1;
  6. #endif
  7. #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
  8. __ino_t st_ino; /* File serial number. */
  9. #else
  10. __ino_t __st_ino; /* 32bit file serial number. */
  11. #endif
  12. #ifndef __x86_64__
  13. __mode_t st_mode; /* File mode. */
  14. __nlink_t st_nlink; /* Link count. */
  15. #else
  16. __nlink_t st_nlink; /* Link count. */
  17. __mode_t st_mode; /* File mode. */
  18. #endif
  19. __uid_t st_uid; /* User ID of the file's owner. */
  20. __gid_t st_gid; /* Group ID of the file's group.*/
  21. #ifdef __x86_64__
  22. int __pad0;
  23. #endif
  24. __dev_t st_rdev; /* Device number, if device. */
  25. #ifndef __x86_64__
  26. unsigned short int __pad2;
  27. #endif
  28. #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
  29. __off_t st_size; /* Size of file, in bytes. */
  30. #else
  31. __off64_t st_size; /* Size of file, in bytes. */
  32. #endif
  33. __blksize_t st_blksize; /* Optimal block size for I/O. */
  34. #if defined __x86_64__ || !defined __USE_FILE_OFFSET64
  35. __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
  36. #else
  37. __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
  38. #endif
  39. #ifdef __USE_XOPEN2K8
  40. /* Nanosecond resolution timestamps are stored in a format
  41. equivalent to 'struct timespec'. This is the type used
  42. whenever possible but the Unix namespace rules do not allow the
  43. identifier 'timespec' to appear in the <sys/stat.h> header.
  44. Therefore we have to handle the use of this header in strictly
  45. standard-compliant sources special. */
  46. struct timespec st_atim; /* Time of last access. */
  47. struct timespec st_mtim; /* Time of last modification. */
  48. struct timespec st_ctim; /* Time of last status change. */
  49. # define st_atime st_atim.tv_sec /* Backward compatibility. */
  50. # define st_mtime st_mtim.tv_sec
  51. # define st_ctime st_ctim.tv_sec
  52. #else
  53. __time_t st_atime; /* Time of last access. */
  54. __syscall_ulong_t st_atimensec; /* Nscecs of last access. */
  55. __time_t st_mtime; /* Time of last modification. */
  56. __syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
  57. __time_t st_ctime; /* Time of last status change. */
  58. __syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
  59. #endif
  60. #ifdef __x86_64__
  61. __syscall_slong_t __glibc_reserved[3];
  62. #else
  63. # ifndef __USE_FILE_OFFSET64
  64. unsigned long int __glibc_reserved4;
  65. unsigned long int __glibc_reserved5;
  66. # else
  67. __ino64_t st_ino; /* File serial number. */
  68. # endif
  69. #endif
  70. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement