[LinuxPPS] cross posting [time-nuts] NTP API on Linux 2.6.26

William S. Brasher billb958 at door.net
Wed Jan 7 18:42:34 CET 2009


I am using glibc-2.7 with the following patch applied:

http://sourceware.org/ml/libc-alpha/2008-03/msg00076.html


The test code reading struct timex returns:
TAI Offset 34


And ntptime returns:
ntp_gettime() returns code 0 (OK)
  time cd0f2c87.abd4e058  Wed, Jan  7 2009  7:28:39.671, (.671217174),
  maximum error 2975 us, estimated error 1 us, TAI offset 34
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset 9.669 us, frequency 2.065 ppm, interval 1 s,
  maximum error 2975 us, estimated error 1 us,
  status 0x2001 (PLL,NANO),
  time constant 4, precision 0.001 us, tolerance 500 ppm,


On a box running glibc-2.6 and ntpd compiled using timex.h from the 
patched glibc-2.7, ntptime returns TAI offset -1208831458.






More information about the LinuxPPS mailing list