@@ -5,8 +5,12 @@ pub type wchar_t = i32;
5
5
6
6
s ! {
7
7
pub struct stat {
8
+ #[ cfg( not( gnu_time_bits64) ) ]
8
9
pub st_dev: c_ulong,
10
+ #[ cfg( gnu_time_bits64) ]
11
+ pub st_dev: crate :: dev_t,
9
12
13
+ #[ cfg( not( gnu_time_bits64) ) ]
10
14
st_pad1: [ c_long; 3 ] ,
11
15
12
16
pub st_ino: crate :: ino_t,
16
20
pub st_uid: crate :: uid_t,
17
21
pub st_gid: crate :: gid_t,
18
22
23
+ #[ cfg( not( gnu_time_bits64) ) ]
19
24
pub st_rdev: c_ulong,
25
+ #[ cfg( gnu_time_bits64) ]
26
+ pub st_rdev: crate :: dev_t,
20
27
21
28
#[ cfg( not( gnu_file_offset_bits64) ) ]
22
29
st_pad2: [ c_long; 2 ] ,
23
- #[ cfg( gnu_file_offset_bits64) ]
30
+ #[ cfg( all ( not ( gnu_time_bits64 ) , gnu_file_offset_bits64) ) ]
24
31
st_pad2: [ c_long; 3 ] ,
25
32
26
33
pub st_size: off_t,
27
34
28
35
#[ cfg( not( gnu_file_offset_bits64) ) ]
29
36
st_pad3: c_long,
30
37
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
+
31
43
pub st_atime: crate :: time_t,
44
+ #[ cfg( gnu_time_bits64) ]
45
+ _atime_pad: c_int,
32
46
pub st_atime_nsec: c_long,
33
47
pub st_mtime: crate :: time_t,
48
+ #[ cfg( gnu_time_bits64) ]
49
+ _mtime_pad: c_int,
34
50
pub st_mtime_nsec: c_long,
35
51
pub st_ctime: crate :: time_t,
52
+ #[ cfg( gnu_time_bits64) ]
53
+ _ctime_pad: c_int,
36
54
pub st_ctime_nsec: c_long,
37
55
56
+ #[ cfg( not( gnu_time_bits64) ) ]
38
57
pub st_blksize: crate :: blksize_t,
39
- #[ cfg( gnu_file_offset_bits64) ]
58
+ #[ cfg( all ( not ( gnu_time_bits64 ) , gnu_file_offset_bits64) ) ]
40
59
st_pad4: c_long,
60
+ #[ cfg( not( gnu_time_bits64) ) ]
41
61
pub st_blocks: crate :: blkcnt_t,
62
+ #[ cfg( not( gnu_time_bits64) ) ]
42
63
st_pad5: [ c_long; 14 ] ,
43
64
}
44
65
45
66
pub struct stat64 {
67
+ #[ cfg( not( gnu_time_bits64) ) ]
46
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) ) ]
47
73
st_pad1: [ c_long; 3 ] ,
74
+
48
75
pub st_ino: crate :: ino64_t,
49
76
pub st_mode: crate :: mode_t,
50
77
pub st_nlink: crate :: nlink_t,
51
78
pub st_uid: crate :: uid_t,
52
79
pub st_gid: crate :: gid_t,
80
+
81
+ #[ cfg( not( gnu_time_bits64) ) ]
53
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) ) ]
54
87
st_pad2: [ c_long; 3 ] ,
88
+
55
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
+
56
96
pub st_atime: crate :: time_t,
97
+ #[ cfg( gnu_time_bits64) ]
98
+ _atime_pad: c_int,
57
99
pub st_atime_nsec: c_long,
58
100
pub st_mtime: crate :: time_t,
101
+ #[ cfg( gnu_time_bits64) ]
102
+ _mtime_pad: c_int,
59
103
pub st_mtime_nsec: c_long,
60
104
pub st_ctime: crate :: time_t,
105
+ #[ cfg( gnu_time_bits64) ]
106
+ _ctime_pad: c_int,
61
107
pub st_ctime_nsec: c_long,
108
+
109
+ #[ cfg( not( gnu_time_bits64) ) ]
62
110
pub st_blksize: crate :: blksize_t,
111
+ #[ cfg( not( gnu_time_bits64) ) ]
63
112
st_pad3: c_long,
113
+ #[ cfg( not( gnu_time_bits64) ) ]
64
114
pub st_blocks: crate :: blkcnt64_t,
115
+ #[ cfg( not( gnu_time_bits64) ) ]
65
116
st_pad5: [ c_long; 14 ] ,
66
117
}
67
118
@@ -161,22 +212,22 @@ s! {
161
212
162
213
pub struct msqid_ds {
163
214
pub msg_perm: crate :: ipc_perm,
164
- #[ cfg( target_endian = "big" ) ]
215
+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
165
216
__glibc_reserved1: c_ulong,
166
217
pub msg_stime: crate :: time_t,
167
- #[ cfg( target_endian = "little" ) ]
218
+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "little" ) ) ]
168
219
__glibc_reserved1: c_ulong,
169
- #[ cfg( target_endian = "big" ) ]
220
+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
170
221
__glibc_reserved2: c_ulong,
171
222
pub msg_rtime: crate :: time_t,
172
- #[ cfg( target_endian = "little" ) ]
223
+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "little" ) ) ]
173
224
__glibc_reserved2: c_ulong,
174
- #[ cfg( target_endian = "big" ) ]
225
+ #[ cfg( all ( not ( gnu_time_bits64 ) , target_endian = "big" ) ) ]
175
226
__glibc_reserved3: c_ulong,
176
227
pub msg_ctime: crate :: time_t,
177
228
#[ cfg( target_endian = "little" ) ]
178
229
__glibc_reserved3: c_ulong,
179
- pub __msg_cbytes: c_ulong,
230
+ __msg_cbytes: c_ulong,
180
231
pub msg_qnum: crate :: msgqnum_t,
181
232
pub msg_qbytes: crate :: msglen_t,
182
233
pub msg_lspid: crate :: pid_t,
0 commit comments