Steinar.Haug@elab-runit.sintef.no (Steinar Haug) (02/05/91)
The xntp implementation for HP, made by Ken Stone of HP, includes an "adjtime" daemon (adjtimed) which performs the adjustment of system time by small deltas. We have it running on several 9000/400 workstations, and it works excellently. You could probably use the adjtimed code as a starting point for further work. xntp for HP is available from columbia.edu, as hp/xntp.tar.Z. See also hp/xntp.README, which I quote from below. Steinar Haug, system/networks administrator ELAB-RUNIT, University of Trondheim, NORWAY Email: Steinar.Haug@elab-runit.sintef.no, sthaug@idt.unit.no, steinar@tosca.er.sintef.no ---------------------------------------------------------------------- This file hopefully describes the whatever and however of how to get xntp running on hpux 7.0 s300 and s800. First off, all the standard disclaimers hold here ... HP doesn't have anthing to do with this stuff. I fool with it in my spare time because we use it and because I like to. We just happen to have a lot of HP machines around here :-) Xntp has been in use here for several months and has a fair amount of mileage on various HP platforms within the company. I can't really guarantee bug fixes but I'd certainly like to hear about bugs and I won't hestitate to look at any fixes sent to me. Now lets talk OS. If you don't have 7.0, pretty much hang it up now. I have this stuff running on 6.5/s300 and 3.1/s800 but it takes some libraries that I cannot give out to get it to work. 7.0 is much nicer so I recommend that if you don't have it, get it. Next, let me explain a bit about how this stuff works on HP-UX since we don't have adjtime(2). The directory adjtime contains libadjtime.a and the adjtimed daemon. Instead of the adjtime(2) system call, we use a library routine to talk to adjtimed thru message queues. Adjtimed munges into /dev/kmem and causes the clock to skew properly as needed.