Skip to content

Commit 91dc624

Browse files
committed
Move struct timex_t from gnu to gnu/b*
1 parent 04b9ce3 commit 91dc624

File tree

3 files changed

+116
-78
lines changed

3 files changed

+116
-78
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,42 @@ s! {
163163
pub __glibc_reserved4: ::c_long,
164164
}
165165

166+
pub struct timex {
167+
pub modes: ::c_uint,
168+
pub __unused_pad1: i32,
169+
pub offset: ::c_longlong,
170+
pub freq: ::c_longlong,
171+
pub maxerror: ::c_longlong,
172+
pub esterror: ::c_longlong,
173+
pub status: ::c_int,
174+
pub __unused_pad2: i32,
175+
pub constant: ::c_longlong,
176+
pub precision: ::c_longlong,
177+
pub tolerance: ::c_longlong,
178+
pub time: ::timeval,
179+
pub tick: ::c_longlong,
180+
pub ppsfreq: ::c_longlong,
181+
pub jitter: ::c_longlong,
182+
pub shift: ::c_int,
183+
pub __unused_pad3: i32,
184+
pub stabil: ::c_longlong,
185+
pub jitcnt: ::c_longlong,
186+
pub calcnt: ::c_longlong,
187+
pub errcnt: ::c_longlong,
188+
pub stbcnt: ::c_longlong,
189+
pub tai: ::c_int,
190+
pub __unused1: i32,
191+
pub __unused2: i32,
192+
pub __unused3: i32,
193+
pub __unused4: i32,
194+
pub __unused5: i32,
195+
pub __unused6: i32,
196+
pub __unused7: i32,
197+
pub __unused8: i32,
198+
pub __unused9: i32,
199+
pub __unused10: i32,
200+
pub __unused11: i32,
201+
}
166202
}
167203

168204
pub const POSIX_FADV_DONTNEED: ::c_int = 4;

src/unix/linux_like/linux/gnu/b64/mod.rs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,86 @@ s! {
102102
pub __glibc_reserved3: ::c_long,
103103
pub __glibc_reserved4: ::c_long,
104104
}
105+
106+
pub struct timex {
107+
pub modes: ::c_uint,
108+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
109+
pub offset: i64,
110+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
111+
pub offset: ::c_long,
112+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
113+
pub freq: i64,
114+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
115+
pub freq: ::c_long,
116+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
117+
pub maxerror: i64,
118+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
119+
pub maxerror: ::c_long,
120+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
121+
pub esterror: i64,
122+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
123+
pub esterror: ::c_long,
124+
pub status: ::c_int,
125+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
126+
pub constant: i64,
127+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
128+
pub constant: ::c_long,
129+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
130+
pub precision: i64,
131+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
132+
pub precision: ::c_long,
133+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
134+
pub tolerance: i64,
135+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
136+
pub tolerance: ::c_long,
137+
pub time: ::timeval,
138+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
139+
pub tick: i64,
140+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
141+
pub tick: ::c_long,
142+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
143+
pub ppsfreq: i64,
144+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
145+
pub ppsfreq: ::c_long,
146+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
147+
pub jitter: i64,
148+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
149+
pub jitter: ::c_long,
150+
pub shift: ::c_int,
151+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
152+
pub stabil: i64,
153+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
154+
pub stabil: ::c_long,
155+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
156+
pub jitcnt: i64,
157+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
158+
pub jitcnt: ::c_long,
159+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
160+
pub calcnt: i64,
161+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
162+
pub calcnt: ::c_long,
163+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
164+
pub errcnt: i64,
165+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
166+
pub errcnt: ::c_long,
167+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
168+
pub stbcnt: i64,
169+
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
170+
pub stbcnt: ::c_long,
171+
pub tai: ::c_int,
172+
pub __unused1: i32,
173+
pub __unused2: i32,
174+
pub __unused3: i32,
175+
pub __unused4: i32,
176+
pub __unused5: i32,
177+
pub __unused6: i32,
178+
pub __unused7: i32,
179+
pub __unused8: i32,
180+
pub __unused9: i32,
181+
pub __unused10: i32,
182+
pub __unused11: i32,
183+
}
184+
105185
}
106186

107187
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -197,84 +197,6 @@ s! {
197197
pub rt_irtt: ::c_ushort,
198198
}
199199

200-
pub struct timex {
201-
pub modes: ::c_uint,
202-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
203-
pub offset: i64,
204-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
205-
pub offset: ::c_long,
206-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
207-
pub freq: i64,
208-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
209-
pub freq: ::c_long,
210-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
211-
pub maxerror: i64,
212-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
213-
pub maxerror: ::c_long,
214-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
215-
pub esterror: i64,
216-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
217-
pub esterror: ::c_long,
218-
pub status: ::c_int,
219-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
220-
pub constant: i64,
221-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
222-
pub constant: ::c_long,
223-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
224-
pub precision: i64,
225-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
226-
pub precision: ::c_long,
227-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
228-
pub tolerance: i64,
229-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
230-
pub tolerance: ::c_long,
231-
pub time: ::timeval,
232-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
233-
pub tick: i64,
234-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
235-
pub tick: ::c_long,
236-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
237-
pub ppsfreq: i64,
238-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
239-
pub ppsfreq: ::c_long,
240-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
241-
pub jitter: i64,
242-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
243-
pub jitter: ::c_long,
244-
pub shift: ::c_int,
245-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
246-
pub stabil: i64,
247-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
248-
pub stabil: ::c_long,
249-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
250-
pub jitcnt: i64,
251-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
252-
pub jitcnt: ::c_long,
253-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
254-
pub calcnt: i64,
255-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
256-
pub calcnt: ::c_long,
257-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
258-
pub errcnt: i64,
259-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
260-
pub errcnt: ::c_long,
261-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
262-
pub stbcnt: i64,
263-
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
264-
pub stbcnt: ::c_long,
265-
pub tai: ::c_int,
266-
pub __unused1: i32,
267-
pub __unused2: i32,
268-
pub __unused3: i32,
269-
pub __unused4: i32,
270-
pub __unused5: i32,
271-
pub __unused6: i32,
272-
pub __unused7: i32,
273-
pub __unused8: i32,
274-
pub __unused9: i32,
275-
pub __unused10: i32,
276-
pub __unused11: i32,
277-
}
278200

279201
pub struct regex_t {
280202
__buffer: *mut ::c_void,

0 commit comments

Comments
 (0)