freebsd-nq/contrib/ntp/util
Ollivier Robert 5e91a9b700 The following patch has been taken from the ntp-stable vendor branch.
Put everything OpenSSL related between #ifdef OPENSSL..#endif.

This also fixes bugs #252, #275 & #293.

See
<http://ntp.bkbits.net:8080/ntp-stable/hist/util/ntp-keygen.c?nav=index.html|src/+|src/util>
for reference.

Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2004-07-22 09:16:04 +00:00
..
ansi2knr.1 Virgin import of ntpd 4.0.98f 1999-12-09 13:01:21 +00:00
ansi2knr.c Virgin import of ntpd 4.1.1b 2002-11-04 19:36:11 +00:00
audio-pcm.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
byteorder.c Virgin import of ntpd 4.0.98f 1999-12-09 13:01:21 +00:00
hist.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
jitter.c Virgin import of ntpd 4.1.0 2001-08-29 14:35:15 +00:00
kern.c Virgin import of ntpd 4.1.0 2001-08-29 14:35:15 +00:00
longsize.c Virgin import of ntpd 4.0.98f 1999-12-09 13:01:21 +00:00
Makefile.am Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
Makefile.in Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
ntp-genkeys.c Virgin import of ntpd 4.1.1a 2002-10-29 19:58:12 +00:00
ntp-keygen.c The following patch has been taken from the ntp-stable vendor branch. 2004-07-22 09:16:04 +00:00
ntptime.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
pps-api.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
precision.c Virgin import of ntpd 4.1.0 2001-08-29 14:35:15 +00:00
README Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
sht.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
testrs6000.c Virgin import of ntpd 4.0.98f 1999-12-09 13:01:21 +00:00
tickadj.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00
timetrim.c Virgin import of ntpd 4.2.0 2004-07-20 15:01:56 +00:00

README file for directory ./util of the NTP Version 4 distribution

This directory contains the sources for the various utility programs.
See the README and RELNOTES files in the parent directory for directions
on how to make and install these programs.

The ntptime.c program checks the kernel configuration for the NTP user
interface syscalls ntp_gettime() and ntp_adjtime().  If present, the
current timekeeping data are displayed.  If not, a dissapointment is
displayed.  See the kernel page file in the HTML documentation in
distribution for further details. ntptime will be built be if configure
believes your system can use it.

The jitter.c program can be used to determine the timing jitter due to
the operating system in a gettimeofday() call.  For most systems the
dominant contribution to the jitter budget is the period of the hardware
interrupt, usually in the range 10 us-1 ms.  For those systems with
microsecond counters, such as recent Sun and certain HP and DEC systems,
the jitter is dominated only by the operating system.

The timetrim.c program can be used with SGI machines to implement a
scheme to discipline the hardware clock frequency.  See the source code
for further information.

The byteorder.c and longsize.c programs are used during the configuration
process to determine the byte order (little or big endian) and longword
size (32 or 64 bits).  See the configure scripts for further details.

The testrs6000.c program is used for testing purposes with the IBM
RS/6000 AIX machines. Bill Jones <jones@chpc.utexas.edu> reports:
"I could not get a tickadj of less than 40 us to work on a RS6000.
If you set it less than 40 us do so at your own risk!"

The tickadj.c program can be used to read and set various kernel
parameters affecting NTP operations. See the tickadj page in the HTML
documentation for further details.  tickadj will be built if configure
believes your system can use it.