@@ -312,6 +312,35 @@ s! {
312
312
pub ll_host: [ :: c_char; UT_HOSTSIZE ] ,
313
313
pub ll_time: :: time_t
314
314
}
315
+
316
+ pub struct timex {
317
+ pub modes: :: c_uint,
318
+ pub offset: :: c_long,
319
+ pub freq: :: c_long,
320
+ pub maxerror: :: c_long,
321
+ pub esterror: :: c_long,
322
+ pub status: :: c_int,
323
+ pub constant: :: c_long,
324
+ pub precision: :: c_long,
325
+ pub tolerance: :: c_long,
326
+ pub ppsfreq: :: c_long,
327
+ pub jitter: :: c_long,
328
+ pub shift: :: c_int,
329
+ pub stabil: :: c_long,
330
+ pub jitcnt: :: c_long,
331
+ pub calcnt: :: c_long,
332
+ pub errcnt: :: c_long,
333
+ pub stbcnt: :: c_long,
334
+ }
335
+
336
+ pub struct ntptimeval {
337
+ pub time: :: timespec,
338
+ pub maxerror: :: c_long,
339
+ pub esterror: :: c_long,
340
+ pub tai: :: c_long,
341
+ pub time_state: :: c_int,
342
+ }
343
+
315
344
}
316
345
317
346
s_no_extra_traits ! {
@@ -426,34 +455,6 @@ s_no_extra_traits! {
426
455
__unused1: * mut :: c_void, //actually a function pointer
427
456
pub sigev_notify_attributes: * mut :: c_void
428
457
}
429
-
430
- pub struct timex {
431
- pub modes: :: c_uint,
432
- pub offset: :: c_long,
433
- pub freq: :: c_long,
434
- pub maxerror: :: c_long,
435
- pub esterror: :: c_long,
436
- pub status: :: c_int,
437
- pub constant: :: c_long,
438
- pub precision: :: c_long,
439
- pub tolerance: :: c_long,
440
- pub ppsfreq: :: c_long,
441
- pub jitter: :: c_long,
442
- pub shift: :: c_int,
443
- pub stabil: :: c_long,
444
- pub jitcnt: :: c_long,
445
- pub calcnt: :: c_long,
446
- pub errcnt: :: c_long,
447
- pub stbcnt: :: c_long,
448
- }
449
-
450
- pub struct ntptimeval {
451
- pub time: :: timespec,
452
- pub maxerror: :: c_long,
453
- pub esterror: :: c_long,
454
- pub tai: :: c_long,
455
- pub time_state: :: c_int,
456
- }
457
458
}
458
459
459
460
cfg_if ! {
0 commit comments