Home
last modified time | relevance | path

Searched refs:adjtv (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/ntp/libntp/
H A Dsystime.c290 struct timeval adjtv; /* new adjustment */ in adj_systime()
325 adjtv.tv_sec = (long)dtemp; in adj_systime()
326 dtemp -= adjtv.tv_sec; in adj_systime()
332 adjtv.tv_usec = (long)(ticks * quant * 1.e6 + .5); in adj_systime()
337 if (adjtv.tv_usec >= 1000000) { in adj_systime()
338 adjtv.tv_sec += 1; in adj_systime()
339 adjtv.tv_usec -= 1000000; in adj_systime()
343 sys_residual = dtemp - adjtv.tv_usec * 1.e-6; in adj_systime()
351 adjtv.tv_sec = -adjtv in adj_systime()
291 struct timeval adjtv; /* new adjustment */ adj_systime() local
[all...]
H A Dmachines.c462 struct timeval adjtv; in ntp_set_tod()
468 adjtv.tv_sec = adjtv.tv_usec = 0; in ntp_set_tod()
469 adjtime(&adjtv, NULL); in ntp_set_tod()
463 struct timeval adjtv; ntp_set_tod() local
/freebsd/contrib/ntp/ntpd/
H A Dntpsim.c554 struct timeval adjtv; /* new adjustment */ local
570 adjtv.tv_sec = (long)dtemp;
571 dtemp -= adjtv.tv_sec;
573 adjtv.tv_usec = (long)(ticks * sys_tick * 1e6);
574 dtemp -= adjtv.tv_usec / 1e6;
583 adjtv.tv_sec = -adjtv.tv_sec;
584 adjtv.tv_usec = -adjtv.tv_usec;
/freebsd/contrib/ntp/ntpdate/
H A Dntpdate.c2016 struct timeval adjtv; in l_adj_systime() local
2045 TSTOTV(&offset, &adjtv); in l_adj_systime()
2048 adjtv.tv_sec = -adjtv.tv_sec; in l_adj_systime()
2049 adjtv.tv_usec = -adjtv.tv_usec; in l_adj_systime()
2052 if (!debug && (adjtv.tv_usec != 0)) { in l_adj_systime()
2057 if (adjtime(&adjtv, &oadjtv) < 0) { in l_adj_systime()