@@ -4,6 +4,11 @@ use crate::prelude::*;
4
4
pub type wchar_t = u32 ;
5
5
6
6
s ! {
7
+ pub struct __c_anonymous_timespec32 {
8
+ __tv_sec: c_long,
9
+ __tv_nsec: c_long,
10
+ }
11
+
7
12
pub struct stat {
8
13
pub st_dev: crate :: dev_t,
9
14
__st_dev_padding: c_int,
17
22
pub st_size: off_t,
18
23
pub st_blksize: crate :: blksize_t,
19
24
pub st_blocks: crate :: blkcnt_t,
25
+ #[ cfg( musl32_time64) ]
26
+ __st_atim32: __c_anonymous_timespec32,
27
+ #[ cfg( musl32_time64) ]
28
+ __st_mtim32: __c_anonymous_timespec32,
29
+ #[ cfg( musl32_time64) ]
30
+ __st_ctim32: __c_anonymous_timespec32,
31
+ #[ cfg( musl32_time64) ]
32
+ pub st_ino: crate :: ino_t,
20
33
pub st_atime: crate :: time_t,
21
34
pub st_atime_nsec: c_long,
35
+ #[ cfg( musl32_time64) ]
36
+ __st_atim_pad: u32 ,
22
37
pub st_mtime: crate :: time_t,
23
38
pub st_mtime_nsec: c_long,
39
+ #[ cfg( musl32_time64) ]
40
+ __st_mtim_pad: u32 ,
24
41
pub st_ctime: crate :: time_t,
25
42
pub st_ctime_nsec: c_long,
43
+ #[ cfg( musl32_time64) ]
44
+ __st_ctim_pad: u32 ,
45
+ #[ cfg( not( musl32_time64) ) ]
26
46
pub st_ino: crate :: ino_t,
27
47
}
28
48
39
59
pub st_size: off_t,
40
60
pub st_blksize: crate :: blksize_t,
41
61
pub st_blocks: crate :: blkcnt_t,
62
+ #[ cfg( musl32_time64) ]
63
+ __st_atim32: __c_anonymous_timespec32,
64
+ #[ cfg( musl32_time64) ]
65
+ __st_mtim32: __c_anonymous_timespec32,
66
+ #[ cfg( musl32_time64) ]
67
+ __st_ctim32: __c_anonymous_timespec32,
68
+ #[ cfg( musl32_time64) ]
69
+ pub st_ino: crate :: ino_t,
42
70
pub st_atime: crate :: time_t,
43
71
pub st_atime_nsec: c_long,
72
+ #[ cfg( musl32_time64) ]
73
+ __st_atim_pad: u32 ,
44
74
pub st_mtime: crate :: time_t,
45
75
pub st_mtime_nsec: c_long,
76
+ #[ cfg( musl32_time64) ]
77
+ __st_mtim_pad: u32 ,
46
78
pub st_ctime: crate :: time_t,
47
79
pub st_ctime_nsec: c_long,
80
+ #[ cfg( musl32_time64) ]
81
+ __st_ctim_pad: u32 ,
82
+ #[ cfg( not( musl32_time64) ) ]
48
83
pub st_ino: crate :: ino_t,
49
84
}
50
85
@@ -77,34 +112,92 @@ s! {
77
112
pub struct shmid_ds {
78
113
pub shm_perm: crate :: ipc_perm,
79
114
pub shm_segsz: size_t,
115
+
116
+ #[ cfg( musl32_time64) ]
117
+ __shm_atime_lo: c_ulong,
118
+ #[ cfg( musl32_time64) ]
119
+ __shm_atime_hi: c_ulong,
120
+ #[ cfg( musl32_time64) ]
121
+ __shm_dtime_lo: c_ulong,
122
+ #[ cfg( musl32_time64) ]
123
+ __shm_dtime_hi: c_ulong,
124
+ #[ cfg( musl32_time64) ]
125
+ __msg_ctime_lo: c_ulong,
126
+ #[ cfg( musl32_time64) ]
127
+ __msg_ctime_hi: c_ulong,
128
+
129
+ #[ cfg( not( musl32_time64) ) ]
80
130
pub shm_atime: crate :: time_t,
131
+ #[ cfg( not( musl32_time64) ) ]
81
132
__unused1: c_int,
133
+ #[ cfg( not( musl32_time64) ) ]
82
134
pub shm_dtime: crate :: time_t,
135
+ #[ cfg( not( musl32_time64) ) ]
83
136
__unused2: c_int,
137
+ #[ cfg( not( musl32_time64) ) ]
84
138
pub shm_ctime: crate :: time_t,
139
+ #[ cfg( not( musl32_time64) ) ]
85
140
__unused3: c_int,
141
+
86
142
pub shm_cpid: crate :: pid_t,
87
143
pub shm_lpid: crate :: pid_t,
88
144
pub shm_nattch: c_ulong,
89
145
__pad1: c_ulong,
90
146
__pad2: c_ulong,
147
+
148
+ #[ cfg( musl32_time64) ]
149
+ __pad3: c_ulong,
150
+ #[ cfg( musl32_time64) ]
151
+ shm_atime: crate :: time_t,
152
+ #[ cfg( musl32_time64) ]
153
+ shm_dtime: crate :: time_t,
154
+ #[ cfg( musl32_time64) ]
155
+ shm_ctime: crate :: time_t,
91
156
}
92
157
93
158
pub struct msqid_ds {
94
159
pub msg_perm: crate :: ipc_perm,
160
+
161
+ #[ cfg( musl32_time64) ]
162
+ __msg_stime_lo: c_ulong,
163
+ #[ cfg( musl32_time64) ]
164
+ __msg_stime_hi: c_ulong,
165
+ #[ cfg( musl32_time64) ]
166
+ __msg_rtime_lo: c_ulong,
167
+ #[ cfg( musl32_time64) ]
168
+ __msg_rtime_hi: c_ulong,
169
+ #[ cfg( musl32_time64) ]
170
+ __msg_ctime_lo: c_ulong,
171
+ #[ cfg( musl32_time64) ]
172
+ __msg_ctime_hi: c_ulong,
173
+
174
+ #[ cfg( not( musl32_time64) ) ]
95
175
pub msg_stime: crate :: time_t,
176
+ #[ cfg( not( musl32_time64) ) ]
96
177
__unused1: c_int,
178
+ #[ cfg( not( musl32_time64) ) ]
97
179
pub msg_rtime: crate :: time_t,
180
+ #[ cfg( not( musl32_time64) ) ]
98
181
__unused2: c_int,
182
+ #[ cfg( not( musl32_time64) ) ]
99
183
pub msg_ctime: crate :: time_t,
184
+ #[ cfg( not( musl32_time64) ) ]
100
185
__unused3: c_int,
186
+
101
187
pub __msg_cbytes: c_ulong,
102
188
pub msg_qnum: crate :: msgqnum_t,
103
189
pub msg_qbytes: crate :: msglen_t,
104
190
pub msg_lspid: crate :: pid_t,
105
191
pub msg_lrpid: crate :: pid_t,
106
192
__pad1: c_ulong,
107
193
__pad2: c_ulong,
194
+
195
+ #[ cfg( musl32_time64) ]
196
+ pub msg_stime: crate :: time_t,
197
+ #[ cfg( musl32_time64) ]
198
+ pub msg_rtime: crate :: time_t,
199
+ #[ cfg( musl32_time64) ]
200
+ pub msg_ctime: crate :: time_t,
108
201
}
109
202
110
203
pub struct mcontext_t {
0 commit comments