@@ -426,34 +426,6 @@ s! {
426426 _shm_internal: * mut c_void,
427427 }
428428
429- pub struct timex {
430- pub modes: c_uint,
431- pub offset: c_long,
432- pub freq: c_long,
433- pub maxerror: c_long,
434- pub esterror: c_long,
435- pub status: c_int,
436- pub constant: c_long,
437- pub precision: c_long,
438- pub tolerance: c_long,
439- pub ppsfreq: c_long,
440- pub jitter: c_long,
441- pub shift: c_int,
442- pub stabil: c_long,
443- pub jitcnt: c_long,
444- pub calcnt: c_long,
445- pub errcnt: c_long,
446- pub stbcnt: c_long,
447- }
448-
449- pub struct ntptimeval {
450- pub time: crate :: timespec,
451- pub maxerror: c_long,
452- pub esterror: c_long,
453- pub tai: c_long,
454- pub time_state: c_int,
455- }
456-
457429 // elf.h
458430
459431 pub struct Elf32_Phdr {
@@ -1368,59 +1340,9 @@ pub const fn _IOC(inout: c_ulong, group: c_ulong, num: c_ulong, len: c_ulong) ->
13681340 | ( num)
13691341}
13701342
1371- //<sys/timex.h>
13721343pub const CLOCK_PROCESS_CPUTIME_ID : crate :: clockid_t = 2 ;
13731344pub const CLOCK_THREAD_CPUTIME_ID : crate :: clockid_t = 4 ;
13741345pub const NTP_API : c_int = 4 ;
1375- pub const MAXPHASE : c_long = 500000000 ;
1376- pub const MAXFREQ : c_long = 500000 ;
1377- pub const MINSEC : c_int = 256 ;
1378- pub const MAXSEC : c_int = 2048 ;
1379- pub const NANOSECOND : c_long = 1000000000 ;
1380- pub const SCALE_PPM : c_int = 65 ;
1381- pub const MAXTC : c_int = 10 ;
1382- pub const MOD_OFFSET : c_uint = 0x0001 ;
1383- pub const MOD_FREQUENCY : c_uint = 0x0002 ;
1384- pub const MOD_MAXERROR : c_uint = 0x0004 ;
1385- pub const MOD_ESTERROR : c_uint = 0x0008 ;
1386- pub const MOD_STATUS : c_uint = 0x0010 ;
1387- pub const MOD_TIMECONST : c_uint = 0x0020 ;
1388- pub const MOD_PPSMAX : c_uint = 0x0040 ;
1389- pub const MOD_TAI : c_uint = 0x0080 ;
1390- pub const MOD_MICRO : c_uint = 0x1000 ;
1391- pub const MOD_NANO : c_uint = 0x2000 ;
1392- pub const MOD_CLKB : c_uint = 0x4000 ;
1393- pub const MOD_CLKA : c_uint = 0x8000 ;
1394- pub const STA_PLL : c_int = 0x0001 ;
1395- pub const STA_PPSFREQ : c_int = 0x0002 ;
1396- pub const STA_PPSTIME : c_int = 0x0004 ;
1397- pub const STA_FLL : c_int = 0x0008 ;
1398- pub const STA_INS : c_int = 0x0010 ;
1399- pub const STA_DEL : c_int = 0x0020 ;
1400- pub const STA_UNSYNC : c_int = 0x0040 ;
1401- pub const STA_FREQHOLD : c_int = 0x0080 ;
1402- pub const STA_PPSSIGNAL : c_int = 0x0100 ;
1403- pub const STA_PPSJITTER : c_int = 0x0200 ;
1404- pub const STA_PPSWANDER : c_int = 0x0400 ;
1405- pub const STA_PPSERROR : c_int = 0x0800 ;
1406- pub const STA_CLOCKERR : c_int = 0x1000 ;
1407- pub const STA_NANO : c_int = 0x2000 ;
1408- pub const STA_MODE : c_int = 0x4000 ;
1409- pub const STA_CLK : c_int = 0x8000 ;
1410- pub const STA_RONLY : c_int = STA_PPSSIGNAL
1411- | STA_PPSJITTER
1412- | STA_PPSWANDER
1413- | STA_PPSERROR
1414- | STA_CLOCKERR
1415- | STA_NANO
1416- | STA_MODE
1417- | STA_CLK ;
1418- pub const TIME_OK : c_int = 0 ;
1419- pub const TIME_INS : c_int = 1 ;
1420- pub const TIME_DEL : c_int = 2 ;
1421- pub const TIME_OOP : c_int = 3 ;
1422- pub const TIME_WAIT : c_int = 4 ;
1423- pub const TIME_ERROR : c_int = 5 ;
14241346
14251347pub const LITTLE_ENDIAN : c_int = 1234 ;
14261348pub const BIG_ENDIAN : c_int = 4321 ;
@@ -2001,8 +1923,6 @@ safe_f! {
20011923}
20021924
20031925extern "C" {
2004- pub fn ntp_adjtime ( buf : * mut timex ) -> c_int ;
2005- pub fn ntp_gettime ( buf : * mut ntptimeval ) -> c_int ;
20061926 pub fn clock_nanosleep (
20071927 clk_id : crate :: clockid_t ,
20081928 flags : c_int ,
0 commit comments