|
64 | 64 | } |
65 | 65 |
|
66 | 66 | pub struct stat64 { |
| 67 | + #[cfg(not(gnu_time_bits64))] |
67 | 68 | pub st_dev: c_ulong, |
| 69 | + #[cfg(gnu_time_bits64)] |
| 70 | + pub st_dev: crate::dev_t, |
| 71 | + |
| 72 | + #[cfg(not(gnu_time_bits64))] |
68 | 73 | st_pad1: [c_long; 3], |
| 74 | + |
69 | 75 | pub st_ino: crate::ino64_t, |
70 | 76 | pub st_mode: crate::mode_t, |
71 | 77 | pub st_nlink: crate::nlink_t, |
72 | 78 | pub st_uid: crate::uid_t, |
73 | 79 | pub st_gid: crate::gid_t, |
| 80 | + |
| 81 | + #[cfg(not(gnu_time_bits64))] |
74 | 82 | pub st_rdev: c_ulong, |
| 83 | + #[cfg(gnu_time_bits64)] |
| 84 | + pub st_rdev: crate::dev_t, |
| 85 | + |
| 86 | + #[cfg(not(gnu_time_bits64))] |
75 | 87 | st_pad2: [c_long; 3], |
| 88 | + |
76 | 89 | pub st_size: off64_t, |
| 90 | + |
| 91 | + #[cfg(gnu_time_bits64)] |
| 92 | + pub st_blksize: crate::blksize_t, |
| 93 | + #[cfg(gnu_time_bits64)] |
| 94 | + pub st_blocks: crate::blkcnt_t, |
| 95 | + |
77 | 96 | pub st_atime: crate::time_t, |
| 97 | + #[cfg(gnu_time_bits64)] |
| 98 | + _atime_pad: c_int, |
78 | 99 | pub st_atime_nsec: c_long, |
79 | 100 | pub st_mtime: crate::time_t, |
| 101 | + #[cfg(gnu_time_bits64)] |
| 102 | + _mtime_pad: c_int, |
80 | 103 | pub st_mtime_nsec: c_long, |
81 | 104 | pub st_ctime: crate::time_t, |
| 105 | + #[cfg(gnu_time_bits64)] |
| 106 | + _ctime_pad: c_int, |
82 | 107 | pub st_ctime_nsec: c_long, |
| 108 | + |
| 109 | + #[cfg(not(gnu_time_bits64))] |
83 | 110 | pub st_blksize: crate::blksize_t, |
| 111 | + #[cfg(not(gnu_time_bits64))] |
84 | 112 | st_pad3: c_long, |
| 113 | + #[cfg(not(gnu_time_bits64))] |
85 | 114 | pub st_blocks: crate::blkcnt64_t, |
| 115 | + #[cfg(not(gnu_time_bits64))] |
86 | 116 | st_pad5: [c_long; 14], |
87 | 117 | } |
88 | 118 |
|
|
0 commit comments