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