Re: 22 sec delta for clockspeed ntp

Alex Stevens <[email protected]> Sun, 30 Jun 2002 14:16:25 -0500
Newsgroups gmane.comp.lib.libtai
Message-ID <[email protected]>
On Sun, Jun 30, 2002 at 06:39:33PM +0200, Malte Tancred wrote:
> On saturday, june 29, 2002, at 11:33 , Alex Stevens wrote:
> > I have tried that, already. In fact, I tried remaking clockspeed
> > altogether. Same problem.
> 
> It may not be a problem on the linux version you're using, but
> on Mac OS X leapsecs_read.c needs a patch.
> 
> I wrote the following on this list some time ago:
> > On Tims suggestion I added yet another include to leapsecs_read.c.
> > Applying the following changes makes the tests pass on Mac OS X:


open("/etc/leapsecs.dat", O_RDONLY|O_NONBLOCK) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=176, ...}) = 0
brk(0)                                  = 0x804c180
brk(0x804c248)                          = 0x804c248
brk(0x804d000)                          = 0x804d000
read(5, "@\0\0\0\4\262X\n@\0\0\0\5\244\354\v@\0\0\0\7\206\37\214"..., 176) = 176
close(5)                                = 0

It looks like it's getting read. 

If I remove /etc/leapsecs.dat, clockspeed syncs the clock with 0 delta
to UTC and to the master on the network (as well as other UTC clocks).

-Alex

-- 
__________________
[email protected]
------------------

"Yeah, I'm drunk all right, and you're crazy. Tomorrow I'll
be sober, but you'll still be crazy for the rest of your life."
-W.C. Fields