[ntp:hackers] 1. ntpd's sync state (Harlan Stenn)

Poul-Henning Kamp phk at phk.freebsd.dk
Thu May 29 19:45:13 UTC 2008


In message <7.0.0.16.2.20080529072401.02333a48 at boulder.nist.gov>, Judah Levine 
writes:
>Hello,
>
>>There is a need to be able to easily and consistently determine if
>>system clock and/or ntpd's idea of its internal state and the system
>>clock are "correct" (for some definition of correct).

Isn't this exactly what the ntp_gettime() systemcall is for ?

     The ntp_gettime() function provides the time, maximum error (sync dis-
     tance) and estimated error (dispersion) to client user application pro-
     grams.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the hackers mailing list