[comp.sys.hp] where are adjtime

ehrhart@joyce.istc.sri.com (Tim Ehrhart) (11/08/88)

I am trying to bring up NTP (network time protocol) on some HP-330
boxes running 6.0.1. This is a time synchronization protocol. There
are two system calls made from the code. I am not an expert with HP-UX,
so I thought I'd pose the question to this group.

Does HP-UX have any support for the BSD section 2 calls:

	adjtime(2)
	setpriority(2)

If anyone has any info or insight, I would love to hear from you.
As I don't read this newsgroup (as well as ANY news lately) on a 
regular basis, an e-mail response would be highly appreciated.

Thanx,
Tim Ehrhart, Systems Programmer
SRI International
(ehrhart@spam.istc.sri.com)

jin@hplabsz.HPL.HP.COM (Tai Jin) (11/19/88)

NTP has been ported to HP-UX and is running quite well.  The adjtime(2)
call is not currently supported in HP-UX, but it is possible to emulate
the functionality in HP-UX 6.0/2.0 and later (there is no guarantee that
this will work in the future).  And instead of the setpriority(2) call,
you could use rtprio(2) instead.  This is not an exact match, but it
should work.

I should caution you about using rtprio(2) in a network application.
There is a daemon called netisr which handles lowlevel network I/O.  This
daemon runs with the lowest real-time priority by default.  And it is
important that netisr be running with a higher real-time priority than all
network applications.  So if any network applications run at real-time
priority then you should increase netisr's priority.

...tai