@@ -5,8 +5,12 @@ pub type wchar_t = i32;
55
66s ! {
77 pub struct stat {
8+ #[ cfg( not( gnu_time_bits64) ) ]
89 pub st_dev: c_ulong,
10+ #[ cfg( gnu_time_bits64) ]
11+ pub st_dev: crate :: dev_t,
912
13+ #[ cfg( not( gnu_time_bits64) ) ]
1014 st_pad1: [ c_long; 3 ] ,
1115
1216 pub st_ino: crate :: ino_t,
1620 pub st_uid: crate :: uid_t,
1721 pub st_gid: crate :: gid_t,
1822
23+ #[ cfg( not( gnu_time_bits64) ) ]
1924 pub st_rdev: c_ulong,
25+ #[ cfg( gnu_time_bits64) ]
26+ pub st_rdev: crate :: dev_t,
2027
2128 #[ cfg( not( gnu_file_offset_bits64) ) ]
2229 st_pad2: [ c_long; 2 ] ,
23- #[ cfg( gnu_file_offset_bits64) ]
30+ #[ cfg( all ( not ( gnu_time_bits64 ) , gnu_file_offset_bits64) ) ]
2431 st_pad2: [ c_long; 3 ] ,
2532
2633 pub st_size: off_t,
2734
2835 #[ cfg( not( gnu_file_offset_bits64) ) ]
2936 st_pad3: c_long,
3037
38+ #[ cfg( gnu_time_bits64) ]
39+ pub st_blksize: crate :: blksize_t,
40+ #[ cfg( gnu_time_bits64) ]
41+ pub st_blocks: crate :: blkcnt_t,
42+
3143 pub st_atime: crate :: time_t,
44+ #[ cfg( gnu_time_bits64) ]
45+ _atime_pad: c_int,
3246 pub st_atime_nsec: c_long,
3347 pub st_mtime: crate :: time_t,
48+ #[ cfg( gnu_time_bits64) ]
49+ _mtime_pad: c_int,
3450 pub st_mtime_nsec: c_long,
3551 pub st_ctime: crate :: time_t,
52+ #[ cfg( gnu_time_bits64) ]
53+ _ctime_pad: c_int,
3654 pub st_ctime_nsec: c_long,
3755
56+ #[ cfg( not( gnu_time_bits64) ) ]
3857 pub st_blksize: crate :: blksize_t,
39- #[ cfg( gnu_file_offset_bits64) ]
58+ #[ cfg( all ( not ( gnu_time_bits64 ) , gnu_file_offset_bits64) ) ]
4059 st_pad4: c_long,
60+ #[ cfg( not( gnu_time_bits64) ) ]
4161 pub st_blocks: crate :: blkcnt_t,
62+ #[ cfg( not( gnu_time_bits64) ) ]
4263 st_pad5: [ c_long; 14 ] ,
4364 }
4465
4566 pub struct stat64 {
67+ #[ cfg( not( gnu_time_bits64) ) ]
4668 pub st_dev: c_ulong,
69+ #[ cfg( gnu_time_bits64) ]
70+ pub st_dev: crate :: dev_t,
71+
72+ #[ cfg( not( gnu_time_bits64) ) ]
4773 st_pad1: [ c_long; 3 ] ,
74+
4875 pub st_ino: crate :: ino64_t,
4976 pub st_mode: crate :: mode_t,
5077 pub st_nlink: crate :: nlink_t,
5178 pub st_uid: crate :: uid_t,
5279 pub st_gid: crate :: gid_t,
80+
81+ #[ cfg( not( gnu_time_bits64) ) ]
5382 pub st_rdev: c_ulong,
83+ #[ cfg( gnu_time_bits64) ]
84+ pub st_rdev: crate :: dev_t,
85+
86+ #[ cfg( not( gnu_time_bits64) ) ]
5487 st_pad2: [ c_long; 3 ] ,
88+
5589 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+
5696 pub st_atime: crate :: time_t,
97+ #[ cfg( gnu_time_bits64) ]
98+ _atime_pad: c_int,
5799 pub st_atime_nsec: c_long,
58100 pub st_mtime: crate :: time_t,
101+ #[ cfg( gnu_time_bits64) ]
102+ _mtime_pad: c_int,
59103 pub st_mtime_nsec: c_long,
60104 pub st_ctime: crate :: time_t,
105+ #[ cfg( gnu_time_bits64) ]
106+ _ctime_pad: c_int,
61107 pub st_ctime_nsec: c_long,
108+
109+ #[ cfg( not( gnu_time_bits64) ) ]
62110 pub st_blksize: crate :: blksize_t,
111+ #[ cfg( not( gnu_time_bits64) ) ]
63112 st_pad3: c_long,
113+ #[ cfg( not( gnu_time_bits64) ) ]
64114 pub st_blocks: crate :: blkcnt64_t,
115+ #[ cfg( not( gnu_time_bits64) ) ]
65116 st_pad5: [ c_long; 14 ] ,
66117 }
67118
@@ -161,22 +212,22 @@ s! {
161212
162213 pub struct msqid_ds {
163214 pub msg_perm: crate :: ipc_perm,
164- #[ cfg( target_endian = "big" ) ]
215+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
165216 __glibc_reserved1: c_ulong,
166217 pub msg_stime: crate :: time_t,
167- #[ cfg( target_endian = "little" ) ]
218+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "little" ) ) ]
168219 __glibc_reserved1: c_ulong,
169- #[ cfg( target_endian = "big" ) ]
220+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
170221 __glibc_reserved2: c_ulong,
171222 pub msg_rtime: crate :: time_t,
172- #[ cfg( target_endian = "little" ) ]
223+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "little" ) ) ]
173224 __glibc_reserved2: c_ulong,
174- #[ cfg( target_endian = "big" ) ]
225+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
175226 __glibc_reserved3: c_ulong,
176227 pub msg_ctime: crate :: time_t,
177228 #[ cfg( target_endian = "little" ) ]
178229 __glibc_reserved3: c_ulong,
179- pub __msg_cbytes: c_ulong,
230+ __msg_cbytes: c_ulong,
180231 pub msg_qnum: crate :: msgqnum_t,
181232 pub msg_qbytes: crate :: msglen_t,
182233 pub msg_lspid: crate :: pid_t,
0 commit comments