

This is a port to QNX 4.2X of about the last gasp of NTP Version 1.

The tar file comprises this README file, the stock ntp.tar from
ftp://louie.udel.edu/pub/ntp/depredated/ntp.3.4 and a patch file
which is used to modify the stock version to run under QNX.

To build everything, do something like the following:

	1) zcat qnx-ntpv1.tar | tar -xvof -
	2) mkdir ntp
	3) cd ntp
	4) tar -xvof ../ntp.tar
	5) patch -p <../qnx-ntp.patch

	5) Possibly edit the Makefile to change compile options or
	   builtin features.

	6) make

Then, start reading the documentation.


Random notes:

1) It's NTP Version 1 because it has a small footprint, works well and
   I don't need to run a reference clock (although I have one copy
   of the daemon hooked up to a PSTI/Traconex receiver for fun).
   Support trailing-edge technology.

2) It's distributed the way it is to avoid filling the code up with
   #ifdef __QNX__'s.  Also, you can check the patch file to get a
   somewhat disembodied synopsis of the changes for QNX.

3) The file qnx_time.c contains some routines which work around the
   lack of an adjtime() call and some problems with other routines
   at the time of the original port.

4) Because QNX does not include a syslog facility (wish it did - hint,
   hint) there is a fake syslog and associated stuff in qnx_syslog.c,
   supported by syslog.h.  You could cut this stuff out and use one
   of the QNX syslog ports, but leaving it in at least makes the daemon
   self-contained.  There is one glaring deficiency (only one?): if
   the daemon starts spitting out the same message over and over because
   of network problems or whatever, the syslog stand-in does not condense
   these into the familiar "... last message repeated 1000000 times"
   form, and the log file can get big.

5) Some of the PLL parameters have been changed to work better with
   typical PCs (or, at least, the ones I have on hand).

6) ftp://louie.udel.edu/pub/ntp/... holds the master NTP distribution.
   Lots of information there.  The clocks.txt file provides a list
   of servers you can use.
   For glitz and easier navigation: http://www.eecis.udel.edu/~ntp/

