diff --git a/usr.sbin/ntp/Makefile b/usr.sbin/ntp/Makefile index b4250b9465e4..18eecd312333 100644 --- a/usr.sbin/ntp/Makefile +++ b/usr.sbin/ntp/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2001/04/19 17:48:18 drochner Exp $ +# $NetBSD: Makefile,v 1.6 2003/12/04 16:41:56 drochner Exp $ -SUBDIR= html libntp libparse .WAIT ntpd ntpdate ntpdc ntpq ntptime \ - ntptimeset ntptrace +SUBDIR= libisc libntp libparse .WAIT +SUBDIR+= ntp-keygen ntpd ntpdate ntpdc ntpq ntptime +SUBDIR+= ntptrace .include diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc index b805f512778e..922780f38fd0 100644 --- a/usr.sbin/ntp/Makefile.inc +++ b/usr.sbin/ntp/Makefile.inc @@ -1,19 +1,18 @@ -# $NetBSD: Makefile.inc,v 1.10 2003/10/21 10:01:22 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.11 2003/12/04 16:41:56 drochner Exp $ .if !defined(NTP_MAKEFILE_INC) NTP_MAKEFILE_INC=1 .include -NTPDOCDIR?= ${HTMLDOCDIR}/ntp - DIST= ${NETBSDSRCDIR}/dist/ntp CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H .if defined(PROG) LIBNTP!= cd ${.CURDIR}/../libntp && ${PRINTOBJDIR} -LDADD+= -L${LIBNTP} -lntp +LIBISC!= cd ${.CURDIR}/../libisc && ${PRINTOBJDIR} +LDADD+= -L${LIBNTP} -lntp -lcrypto DPADD+= ${LIBNTP}/libntp.a SRCS+= version.c diff --git a/usr.sbin/ntp/include/config.h b/usr.sbin/ntp/include/config.h index 3d5c2b445ada..5b440c2aa2d2 100644 --- a/usr.sbin/ntp/include/config.h +++ b/usr.sbin/ntp/include/config.h @@ -1,29 +1,17 @@ -/* config.h. Generated automatically by configure. */ -/* config.h.in. Generated automatically from configure.in by autoheader. */ +/* $NetBSD: config.h,v 1.6 2003/12/04 16:41:56 drochner Exp $ */ +/* manually edited - check "XXX" comments */ -/* debugging code */ -#define DEBUG 1 +/* config.h. Generated by configure. */ +/* config.h.in. Generated from configure.in by autoheader. */ -/* Minutes per DST adjustment */ -#define DSTMINUTES 60 +/* Is adjtime() accurate? */ +/* #undef ADJTIME_IS_ACCURATE */ -/* MD5 authentication */ -#define MD5 1 - -/* DES authentication (COCOM only) */ -/* #undef DES */ - -/* time_t */ -/* #undef time_t */ - -/* reference clock interface */ -#define REFCLOCK 1 - -/* Audio CHU? */ +/* CHU audio/decoder? */ #define AUDIO_CHU 1 -/* PARSE kernel PLL PPS support */ -/* #undef PPS_SYNC */ +/* Declare char *sys_errlist array */ +/* #undef CHAR_SYS_ERRLIST */ /* ACTS modem service */ #define CLOCK_ACTS 1 @@ -31,61 +19,70 @@ /* Arbiter 1088A/B GPS receiver */ #define CLOCK_ARBITER 1 -/* DHD19970505: ARCRON support. */ +/* ARCRON support? */ #define CLOCK_ARCRON_MSF 1 -/* Austron 2200A/2201A GPS receiver */ +/* Austron 2200A/2201A GPS receiver? */ #define CLOCK_AS2201 1 -/* PPS interface */ +/* PPS interface? */ #define CLOCK_ATOM 1 -/* PPS auxiliary interface for ATOM */ -#define PPS_SAMPLE 1 - -/* Datum/Bancomm bc635/VME interface */ +/* Datum/Bancomm bc635/VME interface? */ /* #undef CLOCK_BANC */ -/* Diems Computime Radio Clock */ -#define CLOCK_COMPUTIME 1 - -/* Chronolog K-series WWVB receiver */ +/* Chronolog K-series WWVB receiver? */ #define CLOCK_CHRONOLOG 1 -/* Datum Programmable Time System */ +/* CHU modem/decoder */ +#define CLOCK_CHU 1 + +/* Diems Computime Radio Clock? */ +#define CLOCK_COMPUTIME 1 + +/* Datum Programmable Time System? */ #define CLOCK_DATUM 1 -/* ELV/DCF7000 clock */ +/* ELV/DCF7000 clock? */ #define CLOCK_DCF7000 1 -/* Dumb generic hh:mm:ss local clock */ +/* Dumb generic hh:mm:ss local clock? */ #define CLOCK_DUMBCLOCK 1 -/* Forum Graphic GPS datating station driver */ +/* Forum Graphic GPS datating station driver? */ #define CLOCK_FG 1 -/* TrueTime GPS receiver/VME interface */ +/* TrueTime GPS receiver/VME interface? */ /* #undef CLOCK_GPSVME */ -/* Heath GC-1000 WWV/WWVH receiver */ +/* Heath GC-1000 WWV/WWVH receiver? */ #define CLOCK_HEATH 1 -/* HOPF 6021 clock */ +/* HOPF 6021 clock? */ #define CLOCK_HOPF6021 1 -/* HP 58503A GPS receiver */ +/* HOPF PCI clock device? */ +#define CLOCK_HOPF_PCI 1 + +/* HOPF serial clock device? */ +#define CLOCK_HOPF_SERIAL 1 + +/* HP 58503A GPS receiver? */ #define CLOCK_HPGPS 1 -/* Sun IRIG audio decoder */ +/* IRIG audio decoder? */ #define CLOCK_IRIG 1 -/* Rockwell Jupiter GPS clock */ -/* #undef CLOCK_JUPITER */ +/* JJY receiver? */ +#define CLOCK_JJY 1 -/* Leitch CSD 5300 Master Clock System Driver */ +/* Rockwell Jupiter GPS clock? */ +#define CLOCK_JUPITER 1 + +/* Leitch CSD 5300 Master Clock System Driver? */ #define CLOCK_LEITCH 1 -/* local clock reference */ +/* local clock reference? */ #define CLOCK_LOCAL 1 /* Meinberg clocks */ @@ -97,6 +94,9 @@ /* Magnavox MX4200 GPS receiver */ /* #undef CLOCK_MX4200 */ +/* NeoClock4X */ +#define CLOCK_NEOCLOCK4X 1 + /* NMEA GPS receiver */ #define CLOCK_NMEA 1 @@ -127,11 +127,14 @@ /* RCC 8000 clock */ #define CLOCK_RCC8000 1 +/* RIPE NCC Trimble clock */ +/* #undef CLOCK_RIPENCC */ + /* Schmid DCF77 clock */ #define CLOCK_SCHMID 1 /* clock thru shared memory */ -/* #undef CLOCK_SHM */ +#define CLOCK_SHM 1 /* Spectracom 8170/Netclock/2 WWVB receiver */ #define CLOCK_SPECTRACOM 1 @@ -151,768 +154,969 @@ /* Kinemetrics/TrueTime receivers */ #define CLOCK_TRUETIME 1 -/* Ultralink M320 WWVB receiver */ +/* TrueTime 560 IRIG-B decoder? */ +/* #undef CLOCK_TT560 */ + +/* Ultralink M320 WWVB receiver? */ #define CLOCK_ULINK 1 /* USNO modem service */ #define CLOCK_USNO 1 +/* VARITEXT protocol */ +#define CLOCK_VARITEXT 1 + /* WHARTON 400A Series protocol */ #define CLOCK_WHARTON_400A 1 /* WWV audio driver */ #define CLOCK_WWV 1 -/* VARITEXT protocol */ -#define CLOCK_VARITEXT 1 +/* Zyfer GPStarplus */ +#define CLOCK_ZYFER 1 -/* define if we need to declare int errno; */ +/* Enable debugging? */ +#define DEBUG 1 + +/* Declaration style */ +/* #undef DECL_ADJTIME_0 */ + +/* Declaration style */ +/* #undef DECL_BCOPY_0 */ + +/* Declaration style */ +/* #undef DECL_BZERO_0 */ + +/* Declaration style */ +/* #undef DECL_CFSETISPEED_0 */ + +/* Declare errno? */ /* #undef DECL_ERRNO */ -/* define if we may declare int h_errno; */ +/* Declaration style */ +/* #undef DECL_HSTRERROR_0 */ + +/* Declare h_errno? */ #define DECL_H_ERRNO 1 -/* define if it's OK to declare char *sys_errlist[]; */ -/* #undef CHAR_SYS_ERRLIST */ +/* Declaration style */ +/* #undef DECL_INET_NTOA_0 */ -/* define if it's OK to declare int syscall P((int, struct timeval *, struct timeval *)); */ +/* Declaration style */ +/* #undef DECL_IOCTL_0 */ + +/* Declaration style */ +/* #undef DECL_IPC_0 */ + +/* Declaration style */ +/* #undef DECL_MEMMOVE_0 */ + +/* Declaration style */ +/* #undef DECL_MKSTEMP_0 */ + +/* Declaration style */ +/* #undef DECL_MKTEMP_0 */ + +/* Declaration style */ +/* #undef DECL_MRAND48_0 */ + +/* Declaration style */ +/* #undef DECL_NLIST_0 */ + +/* Declaration style */ +/* #undef DECL_PLOCK_0 */ + +/* Declaration style */ +/* #undef DECL_RENAME_0 */ + +/* Declaration style */ +/* #undef DECL_SELECT_0 */ + +/* Declaration style */ +/* #undef DECL_SETITIMER_0 */ + +/* Declaration style */ +/* #undef DECL_SETPRIORITY_0 */ + +/* Declaration style */ +/* #undef DECL_SETPRIORITY_1 */ + +/* Declaration style */ +/* #undef DECL_SIGVEC_0 */ + +/* Declaration style */ +/* #undef DECL_SRAND48_0 */ + +/* Declaration style */ +/* #undef DECL_STDIO_0 */ + +/* Declaration style */ +/* #undef DECL_STIME_0 */ + +/* Declaration style */ +/* #undef DECL_STIME_1 */ + +/* Declaration style */ +/* #undef DECL_STRERROR_0 */ + +/* Declaration style */ +/* #undef DECL_STRTOL_0 */ + +/* Declare syscall()? */ #define DECL_SYSCALL 1 -/* define if we have syscall is buggy (Solaris 2.4) */ -/* #undef SYSCALL_BUG */ +/* Declaration style */ +/* #undef DECL_SYSLOG_0 */ -/* Do we need extra room for SO_RCVBUF? (HPUX <8) */ -/* #undef NEED_RCVBUF_SLOP */ +/* Declaration style */ +/* #undef DECL_TIMEOFDAY_0 */ -/* Should we open the broadcast socket? */ -#define OPEN_BCAST_SOCKET 1 +/* Declaration style */ +/* #undef DECL_TIME_0 */ -/* Do we want the HPUX FindConfig()? */ -/* #undef NEED_HPUX_FINDCONFIG */ +/* Declaration style */ +/* #undef DECL_TOLOWER_0 */ -/* canonical system (cpu-vendor-os) string */ -#define STR_SYSTEM "i386-unknown-netbsd1.5U" - -/* define if NetInfo support is available */ -/* #undef HAVE_NETINFO */ - -/* define if [gs]ettimeofday() only takes 1 argument */ -/* #undef SYSV_TIMEOFDAY */ - -/* define if struct sockaddr has sa_len */ -#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1 - -/* define if struct clockinfo has hz */ -#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1 - -/* define if struct sigaction has sa_sigaction */ -/* #undef HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION */ - -/* define if struct clockinfo has tickadj */ -#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1 - -/* define if struct ntptimeval uses time.tv_nsec instead of time.tv_usec */ -/* #undef HAVE_TV_NSEC_IN_NTPTIMEVAL */ - -/* Does a system header defind struct ppsclockev? */ -/* #undef HAVE_STRUCT_PPSCLOCKEV */ - -/* define if function prototypes are OK */ -#define HAVE_PROTOTYPES 1 - -/* define if setpgrp takes 0 arguments */ -/* #undef HAVE_SETPGRP_0 */ - -/* hardwire a value for tick? */ -#define PRESET_TICK 1000000L/hz - -/* hardwire a value for tickadj? */ -#define PRESET_TICKADJ 500/hz - -/* is adjtime() accurate? */ -/* #undef ADJTIME_IS_ACCURATE */ - -/* should we NOT read /dev/kmem? */ -/* #undef NOKMEM */ - -/* use UDP Wildcard Delivery? */ -/* #undef UDP_WILDCARD_DELIVERY */ - -/* always slew the clock? */ -/* #undef SLEWALWAYS */ - -/* step, then slew the clock? */ -/* #undef STEP_SLEW */ - -/* force ntpdate to step the clock if !defined(STEP_SLEW) ? */ -/* #undef FORCE_NTPDATE_STEP */ - -/* synch TODR hourly? */ -/* #undef DOSYNCTODR */ - -/* do we set process groups with -pid? */ -/* #undef UDP_BACKWARDS_SETOWN */ - -/* must we have a CTTY for fsetown? */ -#define USE_FSETOWNCTTY 1 - -/* can we use SIGIO for tcp and udp IO? */ -#define HAVE_SIGNALED_IO 1 - -/* can we use SIGPOLL for UDP? */ -/* #undef USE_UDP_SIGPOLL */ - -/* can we use SIGPOLL for tty IO? */ -/* #undef USE_TTY_SIGPOLL */ - -/* do we want the CHU driver? */ -#define CLOCK_CHU 1 - -/* do we have the ppsclock streams module? */ -/* #undef PPS */ - -/* do we have the tty_clk line discipline/streams module? */ -/* #undef TTYCLK */ - -/* does the kernel support precision time discipline? */ -#define KERNEL_PLL 1 - -/* does the kernel support multicasting IP? */ -#define MCAST 1 - -/* do we have ntp_{adj,get}time in libc? */ -#define NTP_SYSCALLS_LIBC 1 - -/* do we have ntp_{adj,get}time in the kernel? */ -/* #undef NTP_SYSCALLS_STD */ - -/* do we have STREAMS/TLI? (Can we replace this with HAVE_SYS_STROPTS_H? */ -/* #undef STREAMS_TLI */ - -/* do we need an s_char typedef? */ -#define NEED_S_CHAR_TYPEDEF 1 - -/* does SIOCGIFCONF return size in the buffer? */ -/* #undef SIZE_RETURNED_IN_BUFFER */ - -/* what is the name of TICK in the kernel? */ -#define K_TICK_NAME "_tick" - -/* Is K_TICK_NAME (nsec_per_tick, for example) in nanoseconds? */ -/* #undef TICK_NANO */ - -/* what is the name of TICKADJ in the kernel? */ -#define K_TICKADJ_NAME "_tickadj" - -/* Is K_TICKADJ_NAME (hrestime_adj, for example) in nanoseconds? */ -/* #undef TICKADJ_NANO */ - -/* what is (probably) the name of DOSYNCTODR in the kernel? */ -#define K_DOSYNCTODR_NAME "_dosynctodr" - -/* what is (probably) the name of NOPRINTF in the kernel? */ -#define K_NOPRINTF_NAME "_noprintf" - -/* do we need HPUX adjtime() library support? */ -/* #undef NEED_HPUX_ADJTIME */ - -/* Might nlist() values require an extra level of indirection (AIX)? */ -/* #undef NLIST_EXTRA_INDIRECTION */ - -/* Other needed NLIST stuff */ -#define NLIST_STRUCT 1 -/* #undef NLIST_NAME_UNION */ - -/* Should we recommend a minimum value for tickadj? */ -/* #undef MIN_REC_TICKADJ */ - -/* Is there a problem using PARENB and IGNPAR (IRIX)? */ -/* #undef NO_PARENB_IGNPAR */ - -/* Should we not IGNPAR (Linux)? */ -/* #undef RAWDCF_NO_IGNPAR */ - -/* Does the compiler like "volatile"? */ -/* #undef volatile */ - -/* Does qsort expect to work on "void *" stuff? */ -#define QSORT_USES_VOID_P 1 +/* Declaration style */ +/* #undef DECL_TOUPPER_0 */ /* What is the fallback value for HZ? */ #define DEFAULT_HZ 100 -/* Do we need to override the system's idea of HZ? */ -/* #undef OVERRIDE_HZ */ +/* synch TODR hourly? */ +/* #undef DOSYNCTODR */ -/* Do we want the SCO clock hacks? */ -/* #undef SCO5_CLOCK */ +/* The number of minutes in a DST adjustment */ +#define DSTMINUTES 60 -/* Do we want the ReliantUNIX clock hacks? */ -/* #undef RELIANTUNIX_CLOCK */ +/* force ntpdate to step the clock if !defined(STEP_SLEW) ? */ +/* #undef FORCE_NTPDATE_STEP */ -/* Does the kernel have an FLL bug? */ -/* #undef KERNEL_FLL_BUG */ - -/* Define if you have the TIOCGPPSEV ioctl (Solaris) */ -/* #undef HAVE_TIOCGPPSEV */ - -/* Define if you have the TIOCSPPS ioctl (Solaris) */ -/* #undef HAVE_TIOCSPPS */ - -/* Define if you have the CIOGETEV ioctl (SunOS, Linux) */ -/* #undef HAVE_CIOGETEV */ - -/* Define if you have the TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, and ASYNC_PPS_CD_NEG ioctls (linux) */ -/* #undef HAVE_TIO_SERIAL_STUFF */ - -/* Define if you use struct timespec rather than struct timeval (time in ns rather than us) */ -#define HAVE_TIMESPEC 1 - -/* Define if you have the interface in the Draft RFC */ -#define HAVE_PPSAPI 1 - -/* Do we need to #define _SVID3 when we #include ? */ -/* #undef TERMIOS_NEEDS__SVID3 */ - -/* Do we have support for SHMEM_STATUS? */ -#define ONCORE_SHMEM_STATUS 1 - -/* adjtime()? */ -/* #undef DECL_ADJTIME_0 */ - -/* bcopy()? */ -/* #undef DECL_BCOPY_0 */ - -/* bzero()? */ -/* #undef DECL_BZERO_0 */ - -/* cfset[io]speed()? */ -/* #undef DECL_CFSETISPEED_0 */ - -/* ioctl()? */ -/* #undef DECL_IOCTL_0 */ - -/* IPC? (bind, connect, recvfrom, sendto, setsockopt, socket) */ -/* #undef DECL_IPC_0 */ - -/* memmove()? */ -/* #undef DECL_MEMMOVE_0 */ - -/* mkstemp()? */ -/* #undef DECL_MKSTEMP_0 */ - -/* mktemp()? */ -/* #undef DECL_MKTEMP_0 */ - -/* mrand48()? */ -/* #undef DECL_MRAND48_0 */ - -/* nlist()? */ -/* #undef DECL_NLIST_0 */ - -/* plock()? */ -/* #undef DECL_PLOCK_0 */ - -/* rename()? */ -/* #undef DECL_RENAME_0 */ - -/* select()? */ -/* #undef DECL_SELECT_0 */ - -/* setitimer()? */ -/* #undef DECL_SETITIMER_0 */ - -/* setpriority()? */ -/* #undef DECL_SETPRIORITY_0 */ -/* #undef DECL_SETPRIORITY_1 */ - -/* sigvec()? */ -/* #undef DECL_SIGVEC_0 */ - -/* srand48()? */ -/* #undef DECL_SRAND48_0 */ - -/* stdio stuff? */ -/* #undef DECL_STDIO_0 */ - -/* stime()? */ -/* #undef DECL_STIME_0 */ -/* #undef DECL_STIME_1 */ - -/* strtol()? */ -/* #undef DECL_STRTOL_0 */ - -/* syslog() stuff? */ -/* #undef DECL_SYSLOG_0 */ - -/* time()? */ -/* #undef DECL_TIME_0 */ - -/* [gs]ettimeofday()? */ -/* #undef DECL_TIMEOFDAY_0 */ - -/* tolower()? */ -/* #undef DECL_TOLOWER_0 */ - -/* toupper()? */ -/* #undef DECL_TOUPPER_0 */ - -/* Autokey? */ -#define AUTOKEY - -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_ARPA_NAMESER_H 1 -/* Define if you have the header file. */ +/* Do we have audio support? */ +#define HAVE_AUDIO + +/* Define to 1 if you have the header file. */ /* #undef HAVE_BSTRING_H */ -/* Define if you have the `clock_settime' function. */ +/* Do we have the CIOGETEV ioctl (SunOS, Linux)? */ +/* #undef HAVE_CIOGETEV */ + +/* [Use], [/dev/clockctl?] */ +#define HAVE_CLOCKCTL + +/* Define to 1 if you have the `clock_gettime' function. */ +#define HAVE_CLOCK_GETTIME 1 + +/* Define to 1 if you have the `clock_settime' function. */ #define HAVE_CLOCK_SETTIME 1 -/* Define if you have the `daemon' function. */ +/* Define to 1 if you have the `daemon' function. */ #define HAVE_DAEMON 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the `EVP_md2' function. */ +/* #undef HAVE_EVP_MD2 */ + +/* Define to 1 if you have the `EVP_mdc2' function. */ +/* #undef HAVE_EVP_MDC2 */ + +/* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 -/* Define if you have the `getbootfile' function. */ +/* Define to 1 if you have the `finite' function. */ +/* #undef HAVE_FINITE */ + +/* Define to 1 if you have the `getbootfile' function. */ /* #undef HAVE_GETBOOTFILE */ -/* Define if you have the `getdtablesize' function. */ +/* Define to 1 if you have the `getclock' function. */ +/* #undef HAVE_GETCLOCK */ + +/* Define to 1 if you have the `getdtablesize' function. */ #define HAVE_GETDTABLESIZE 1 -/* Define if you have the `getrusage' function. */ +/* Define to 1 if you have the `getrusage' function. */ #define HAVE_GETRUSAGE 1 -/* Define if you have the `gettimeofday' function. */ -#define HAVE_GETTIMEOFDAY 1 - -/* Define if you have the `getuid' function. */ +/* Define to 1 if you have the `getuid' function. */ #define HAVE_GETUID 1 -/* Define if you have the `hstrerror' function. */ +/* Define to 1 if you have the `hstrerror' function. */ #define HAVE_HSTRERROR 1 -/* Define if you have the `kvm_open' function. */ +/* Obvious... */ +#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1 + +/* Define to 1 if you have the header file. */ +/* XXX commented out for portability */ +/* #define HAVE_IEEEFP_H 1 */ + +/* ISC: Use iflist_sysctl? */ +#define HAVE_IFLIST_SYSCTL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `isfinite' function. */ +/* #undef HAVE_ISFINITE */ + +/* Define to 1 if you have the `kvm_open' function. */ #define HAVE_KVM_OPEN 1 -/* Define if you have the `K_open' function. */ +/* Define to 1 if you have the `K_open' function. */ /* #undef HAVE_K_OPEN */ -/* Define if you have the `advapi32' library (-ladvapi32). */ +/* Define to 1 if you have the `advapi32' library (-ladvapi32). */ /* #undef HAVE_LIBADVAPI32 */ -/* Define if you have the `elf' library (-lelf). */ +/* Do we have the curses library? */ +#define HAVE_LIBCURSES + +/* Do we have the edit library? */ +#define HAVE_LIBEDIT + +/* Define to 1 if you have the `elf' library (-lelf). */ /* #undef HAVE_LIBELF */ -/* Define if you have the `gen' library (-lgen). */ +/* Define to 1 if you have the `gen' library (-lgen). */ /* #undef HAVE_LIBGEN */ -/* Define if you have the `kvm' library (-lkvm). */ +/* Define to 1 if you have the `kvm' library (-lkvm). */ #define HAVE_LIBKVM 1 -/* Define if you have the `ld' library (-lld). */ +/* Define to 1 if you have the `ld' library (-lld). */ /* #undef HAVE_LIBLD */ -/* Define if you have the `mld' library (-lmld). */ +/* Define to 1 if you have the `md' library (-lmd). */ +/* #undef HAVE_LIBMD */ + +/* Define to 1 if you have the `md5' library (-lmd5). */ +/* #undef HAVE_LIBMD5 */ + +/* Define to 1 if you have the `mld' library (-lmld). */ /* #undef HAVE_LIBMLD */ -/* Define if you have the `nsl' library (-lnsl). */ +/* Define to 1 if you have the `nsl' library (-lnsl). */ /* #undef HAVE_LIBNSL */ -/* Define if you have the `posix4' library (-lposix4). */ +/* Define to 1 if you have the `posix4' library (-lposix4). */ /* #undef HAVE_LIBPOSIX4 */ -/* Define if you have the `rt' library (-lrt). */ +/* Define to 1 if you have the `readline' library (-lreadline). */ +/* #undef HAVE_LIBREADLINE */ + +/* Define to 1 if you have the `rt' library (-lrt). */ /* #undef HAVE_LIBRT */ -/* Define if you have the `socket' library (-lsocket). */ +/* Define to 1 if you have the `socket' library (-lsocket). */ /* #undef HAVE_LIBSOCKET */ -/* Define if you have the header file. */ +/* Define to 1 if you have the `syslog' library (-lsyslog). */ +/* #undef HAVE_LIBSYSLOG */ + +/* Define to 1 if you have the header file. */ /* #undef HAVE_MACHINE_INLINE_H */ -/* Define if you have the `memcpy' function. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MACHINE_SOUNDCARD_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MATH_H 1 + +/* Define to 1 if you have the `MD5Init' function. */ +#define HAVE_MD5INIT 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MD5_H 1 + +/* Define to 1 if you have the `memcpy' function. */ #define HAVE_MEMCPY 1 -/* Define if you have the `memlk' function. */ +/* Define to 1 if you have the `memlk' function. */ /* #undef HAVE_MEMLK */ -/* Define if you have the `memmove' function. */ +/* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 -/* Define if you have the `memset' function. */ +/* Define to 1 if you have the `memset' function. */ #define HAVE_MEMSET 1 -/* Define if you have the `mkstemp' function. */ +/* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 -/* Define if you have the `mktime' function. */ +/* Define to 1 if you have the `mktime' function. */ #define HAVE_MKTIME 1 -/* Define if you have the `mlockall' function. */ +/* Define to 1 if you have the `mlockall' function. */ #define HAVE_MLOCKALL 1 -/* Define if you have the `mrand48' function. */ +/* Define to 1 if you have the `mrand48' function. */ #define HAVE_MRAND48 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_NETDB_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_NETINET_IN_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NETINET_IN_SYSTEM_H */ + +/* Define to 1 if you have the header file. */ #define HAVE_NETINET_IN_SYSTM_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_IP_H 1 + +/* NetInfo support? */ +/* #undef HAVE_NETINFO */ + +/* Define to 1 if you have the header file. */ /* #undef HAVE_NETINFO_NI_H */ -/* Define if you have the header file. */ -#define HAVE_NET_IF_H 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NET_IF6_H */ -/* Define if you have the `nice' function. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NET_IF_H */ + +/* Define to 1 if you have the `nice' function. */ #define HAVE_NICE 1 -/* Define if you have the `nlist' function. */ +/* Define to 1 if you have the `nlist' function. */ #define HAVE_NLIST 1 -/* Define if you have the `ntp_adjtime' function. */ +/* Define to 1 if you have the `ntp_adjtime' function. */ #define HAVE_NTP_ADJTIME 1 -/* Define if you have the `ntp_gettime' function. */ +/* Define to 1 if you have the `ntp_gettime' function. */ #define HAVE_NTP_GETTIME 1 -/* Define if you have the `plock' function. */ +/* Define to 1 if you have the `plock' function. */ /* #undef HAVE_PLOCK */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 -/* Define if you have the `pututline' function. */ +/* Do we have the PPS API per the Draft RFC? */ +#define HAVE_PPSAPI 1 + +/* Are function prototypes OK? */ +#define HAVE_PROTOTYPES 1 + +/* Define to 1 if you have the `pututline' function. */ /* #undef HAVE_PUTUTLINE */ -/* Define if you have the `pututxline' function. */ -/* #undef HAVE_PUTUTXLINE */ +/* Define to 1 if you have the `pututxline' function. */ +#define HAVE_PUTUTXLINE 1 -/* Define if you have the `random' function. */ +/* Define to 1 if you have the `random' function. */ /* #undef HAVE_RANDOM */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_READLINE_HISTORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_READLINE_READLINE_H 1 + +/* Define to 1 if you have the `readlink' function. */ +#define HAVE_READLINK 1 + +/* Define to 1 if you have the header file. */ #define HAVE_RESOLV_H 1 -/* Define if you have the `rtprio' function. */ +/* Define to 1 if you have the `rtprio' function. */ /* #undef HAVE_RTPRIO */ -/* Define if you have the header file. */ -/* #undef HAVE_SCHED_H */ +/* Should be obvious... */ +#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1 -/* Define if you have the `sched_setscheduler' function. */ +/* Obvious... */ +#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SCHED_H 1 + +/* Define to 1 if you have the `sched_setscheduler' function. */ /* #undef HAVE_SCHED_SETSCHEDULER */ -/* Define if you have the `setlinebuf' function. */ +/* Define to 1 if you have the `setlinebuf' function. */ #define HAVE_SETLINEBUF 1 -/* Define if you have the `setpgid' function. */ +/* Define to 1 if you have the `setpgid' function. */ #define HAVE_SETPGID 1 -/* Define if you have the `setpriority' function. */ +/* define if setpgrp takes 0 arguments */ +/* #undef HAVE_SETPGRP_0 */ + +/* Define to 1 if you have the `setpriority' function. */ #define HAVE_SETPRIORITY 1 -/* Define if you have the `setsid' function. */ +/* Define to 1 if you have the `setrlimit' function. */ +#define HAVE_SETRLIMIT 1 + +/* Define to 1 if you have the `setsid' function. */ #define HAVE_SETSID 1 -/* Define if you have the `settimeofday' function. */ +/* Define to 1 if you have the `settimeofday' function. */ #define HAVE_SETTIMEOFDAY 1 -/* Define if you have the `setvbuf' function. */ +/* Define to 1 if you have the `setvbuf' function. */ #define HAVE_SETVBUF 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SGTTY_H 1 -/* Define if you have the `sigaction' function. */ +/* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 -/* Define if you have the `sigset' function. */ -/* #undef HAVE_SIGSET */ +/* Can we use SIGIO for tcp and udp IO? */ +#define HAVE_SIGNALED_IO 1 -/* Define if you have the `sigsuspend' function. */ +/* Define to 1 if you have the `sigset' function. */ +#define HAVE_SIGSET 1 + +/* Define to 1 if you have the `sigsuspend' function. */ #define HAVE_SIGSUSPEND 1 -/* Define if you have the `sigvec' function. */ +/* Define to 1 if you have the `sigvec' function. */ #define HAVE_SIGVEC 1 -/* Define if you have the `snprintf' function. */ +/* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 -/* Define if you have the `srand48' function. */ +/* XXX bugfix: missing in original */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the `srand48' function. */ #define HAVE_SRAND48 1 -/* Define if you have the header file. */ +/* Does struct sockaddr_storage have ss_family? */ +#define HAVE_SS_FAMILY_IN_SS 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 -/* Define if you have the `stime' function. */ +/* Define to 1 if you have the `stime' function. */ /* #undef HAVE_STIME */ -/* Define if you have the `strchr' function. */ +/* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 -/* Define if you have the `strerror' function. */ +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 -/* Define if `blocksize' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_BLOCKSIZE */ - -/* Define if `hiwat' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_HIWAT */ - -/* Define if `lowat' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_LOWAT */ - -/* Define if `mode' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_MODE */ - -/* Define if `monitor_gain' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_MONITOR_GAIN */ - -/* Define if `output_muted' is member of `struct audio_info'. */ -/* #undef HAVE_STRUCT_AUDIO_INFO_OUTPUT_MUTED */ +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 /* Do we have struct ntptimeval? */ #define HAVE_STRUCT_NTPTIMEVAL 1 -/* Define if you have the header file. */ +/* Define to 1 if `time.tv_nsec' is member of `struct ntptimeval'. */ +/* #undef HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC */ + +/* Does a system header define struct ppsclockev? */ +/* #undef HAVE_STRUCT_PPSCLOCKEV */ + +/* Do we have struct snd_size? */ +/* #undef HAVE_STRUCT_SND_SIZE */ + +/* Do we have struct timespec? */ +#define HAVE_STRUCT_TIMESPEC 1 + +/* Define to 1 if you have the header file. */ /* #undef HAVE_SUN_AUDIOIO_H */ -/* Define if you have the `sysconf' function. */ +/* Define to 1 if you have the `sysconf' function. */ #define HAVE_SYSCONF 1 -/* Define if you have the `sysctl' function. */ +/* Define to 1 if you have the `sysctl' function. */ #define HAVE_SYSCTL 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_AUDIOIO_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_CLKDEFS_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_CLOCKCTL_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_FILE_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_I8253_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_IPC_H 1 + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_LOCK_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_MMAN_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MODEM_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PCL720_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PPSCLOCK_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PPSTIME_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_PROC_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_RESOURCE_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_SCHED_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SHM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SIGNAL_H 1 + +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SIO_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_SOCKIO_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SOUNDCARD_H */ + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_STREAM_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_STROPTS_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_SYSCTL_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SYSSGI_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SYSTUNE_H */ + +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TERMIOS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TIMEPPS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_TIMERS_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TIMEX_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_TPRO_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_SYS_WAIT_H 1 -/* Define if the system has the type `s_char'. */ +/* Define to 1 if the system has the type `s_char'. */ /* #undef HAVE_S_CHAR */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_TERMIOS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_TERMIO_H */ -/* Define if you have the header file. */ +/* Obvious... */ +#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1 + +/* Define to 1 if you have the `timegm' function. */ +#define HAVE_TIMEGM 1 + +/* Define to 1 if you have the header file. */ /* #undef HAVE_TIMEPPS_H */ -/* Define if you have the `timer_create' function. */ -/* #undef HAVE_TIMER_CREATE */ +/* Define to 1 if you have the `timer_create' function. */ +#define HAVE_TIMER_CREATE 1 -/* Define if you have the `timer_settime' function. */ -/* #undef HAVE_TIMER_SETTIME */ +/* Define to 1 if you have the `timer_settime' function. */ +#define HAVE_TIMER_SETTIME 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_TIMEX_H */ -/* Define if you have the `umask' function. */ +/* Do we have the TIOCGPPSEV ioctl (Solaris)? */ +/* #undef HAVE_TIOCGPPSEV */ + +/* Do we have the TIOCSPPS ioctl (Solaris)? */ +/* #undef HAVE_TIOCSPPS */ + +/* Do we have the TIO serial stuff? */ +/* #undef HAVE_TIO_SERIAL_STUFF */ + +/* Does u_int64_t exist */ +#define HAVE_TYPE_U_INT64_T 1 + +/* Does u_int8_t exist */ +#define HAVE_TYPE_U_INT8_T 1 + +/* Define to 1 if you have the `umask' function. */ #define HAVE_UMASK 1 -/* Define if you have the `uname' function. */ +/* Define to 1 if you have the `uname' function. */ #define HAVE_UNAME 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 -/* Define if you have the `updwtmp' function. */ +/* Define to 1 if you have the `updwtmp' function. */ /* #undef HAVE_UPDWTMP */ -/* Define if you have the `updwtmpx' function. */ -/* #undef HAVE_UPDWTMPX */ +/* Define to 1 if you have the `updwtmpx' function. */ +#define HAVE_UPDWTMPX 1 -/* Define if you have the header file. */ -/* #undef HAVE_UTMPX_H */ +/* Define to 1 if you have the header file. */ +#define HAVE_UTMPX_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_UTMP_H 1 -/* Define if you have the `vsprintf' function. */ +/* Define to 1 if you have the `vsprintf' function. */ #define HAVE_VSPRINTF 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE__SYS_SYNC_QUEUE_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE__SYS_SYNC_SEMA_H */ -/* Define if you have the `__adjtimex' function. */ +/* Define to 1 if you have the `__adjtimex' function. */ /* #undef HAVE___ADJTIMEX */ -/* Define if you have the `__ntp_gettime' function. */ +/* Define to 1 if you have the `__ntp_gettime' function. */ /* #undef HAVE___NTP_GETTIME */ +/* Does struct sockaddr_storage have __ss_family? */ +/* #undef HAVE___SS_FAMILY_IN_SS */ + +/* Should we use the IRIG sawtooth filter? */ +/* #undef IRIG_SUCKS */ + +/* ISC: have struct if_laddrconf? */ +/* #undef ISC_PLATFORM_HAVEIF_LADDRCONF */ + +/* ISC: have struct if_laddrreq? */ +/* #undef ISC_PLATFORM_HAVEIF_LADDRREQ */ + +/* ISC: Have struct in6_pktinfo? */ +#define ISC_PLATFORM_HAVEIN6PKTINFO + +/* ISC: Have IPv6? */ +#define ISC_PLATFORM_HAVEIPV6 + +/* ISC: struct sockaddr as sa_len? */ +#define ISC_PLATFORM_HAVESALEN + +/* ISC: Need in6addr_any? */ +/* #undef ISC_PLATFORM_NEEDIN6ADDRANY */ + +/* ISC: provide inet_ntop() */ +/* #undef ISC_PLATFORM_NEEDNTOP */ + +/* Does the kernel have an FLL bug? */ +/* #undef KERNEL_FLL_BUG */ + +/* Does the kernel support precision time discipline? */ +#define KERNEL_PLL 1 + +/* What is (probably) the name of DOSYNCTODR in the kernel? */ +#define K_DOSYNCTODR_NAME "_dosynctodr" + +/* What is (probably) the name of NOPRINTF in the kernel? */ +#define K_NOPRINTF_NAME "_noprintf" + +/* What is the name of TICKADJ in the kernel? */ +#define K_TICKADJ_NAME "_tickadj" + +/* What is the name of TICK in the kernel? */ +#define K_TICK_NAME "_tick" + +/* Should we align with the NIST lockclock scheme? */ +/* #undef LOCKCLOCK */ + +/* Does the kernel support multicasting IP? */ +#define MCAST 1 + +/* Should we recommend a minimum value for tickadj? */ +/* #undef MIN_REC_TICKADJ */ + +/* Do we need HPUX adjtime() library support? */ +/* #undef NEED_HPUX_ADJTIME */ + +/* Do we want the HPUX FindConfig()? */ +/* #undef NEED_HPUX_FINDCONFIG */ + +/* Do we need the qnx adjtime call? */ +/* #undef NEED_QNX_ADJTIME */ + +/* Do we need extra room for SO_RCVBUF? (HPUX <8) */ +/* #undef NEED_RCVBUF_SLOP */ + +/* Do we need an s_char typedef? */ +#define NEED_S_CHAR_TYPEDEF 1 + +/* Might nlist() values require an extra level of indirection (AIX)? */ +/* #undef NLIST_EXTRA_INDIRECTION */ + +/* does struct nlist use a name union? */ +/* #undef NLIST_NAME_UNION */ + +/* nlist stuff */ +#define NLIST_STRUCT 1 + +/* Should we NOT read /dev/kmem? */ +/* #undef NOKMEM */ + +/* Is there a problem using PARENB and IGNPAR (IRIX)? */ +/* #undef NO_PARENB_IGNPAR */ + +/* Default location of crypto key info */ +#define NTP_KEYSDIR "/etc/ntp" + +/* Do we have ntp_{adj,get}time in libc? */ +#define NTP_SYSCALLS_LIBC 1 + +/* Do we have ntp_{adj,get}time in the kernel? */ +/* #undef NTP_SYSCALLS_STD */ + +/* Do we have support for SHMEM_STATUS? */ +#define ONCORE_SHMEM_STATUS 1 + +/* Use OpenSSL? */ +#define OPENSSL + +/* Should we open the broadcast socket? */ +#define OPEN_BCAST_SOCKET 1 + +/* Do we need to override the system's idea of HZ? */ +/* #undef OVERRIDE_HZ */ + /* Name of package */ #define PACKAGE "ntp" +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Do we have the ppsclock streams module? */ +/* #undef PPS */ + +/* PPS auxiliary interface for ATOM? */ +#define PPS_SAMPLE 1 + +/* PARSE kernel PLL PPS support */ +/* #undef PPS_SYNC */ + +/* Preset a value for 'tick'? */ +#define PRESET_TICK 1000000L/hz + +/* Preset a value for 'tickadj'? */ +#define PRESET_TICKADJ 500/hz + /* Define if compiler has function prototypes */ #define PROTOTYPES 1 -/* Public key? */ -/* #undef PUBKEY */ +/* Does qsort expect to work on "void *" stuff? */ +#define QSORT_USES_VOID_P 1 + +/* Should we not IGNPAR (Linux)? */ +/* #undef RAWDCF_NO_IGNPAR */ + +/* Basic refclock support? */ +#define REFCLOCK 1 + +/* Do we want the ReliantUNIX clock hacks? */ +/* #undef RELIANTUNIX_CLOCK */ /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void -/* The number of bytes in a `int'. */ +/* Do we want the SCO clock hacks? */ +/* #undef SCO5_CLOCK */ + +/* The size of a `int', as computed by sizeof. */ #define SIZEOF_INT 4 -/* The number of bytes in a `long'. */ -#define SIZEOF_LONG 4 +/* The size of a `long', as computed by sizeof. */ +/* XXX unused in code - force an error to ensure portability */ +#define SIZEOF_LONG nonsense -/* The number of bytes in a `signed char'. */ +/* The size of a `signed char', as computed by sizeof. */ #define SIZEOF_SIGNED_CHAR 1 -/* Define if you have the ANSI C header files. */ +/* Does SIOCGIFCONF return size in the buffer? */ +/* #undef SIZE_RETURNED_IN_BUFFER */ + +/* Slew always? */ +/* #undef SLEWALWAYS */ + +/* *s*printf() functions are char* */ +/* #undef SPRINTF_CHAR */ + +/* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 -/* Does ntptimeval use struct timespec? */ -/* #undef TIMESPEC_IN_NTPTIMEVAL */ +/* Step, then slew the clock? */ +/* #undef STEP_SLEW */ -/* Define if you can safely include both and . */ +/* Do we have STREAMS/TLI? (Can we replace this with HAVE_SYS_STROPTS_H?) */ +/* #undef STREAMS_TLI */ + +/* canonical system (cpu-vendor-os) string */ +#define STR_SYSTEM "i386--netbsd2" + +/* Buggy syscall() (Solaris2.4)? */ +/* #undef SYSCALL_BUG */ + +/* Does Xettimeofday take 1 arg? */ +/* #undef SYSV_TIMEOFDAY */ + +/* Do we need to #define _SVID3 when we #include ? */ +/* #undef TERMIOS_NEEDS__SVID3 */ + +/* Is K_TICKADJ_NAME in nanoseconds? */ +/* #undef TICKADJ_NANO */ + +/* Is K_TICK_NAME in nanoseconds? */ +/* #undef TICK_NANO */ + +/* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 -/* Define if your declares `struct tm'. */ +/* Define to 1 if your declares `struct tm'. */ /* #undef TM_IN_SYS_TIME */ +/* Do we have the tty_clk line discipline/streams module? */ +/* #undef TTYCLK */ + +/* Do we set process groups with -pid? */ +/* #undef UDP_BACKWARDS_SETOWN */ + +/* use UDP Wildcard Delivery? */ +/* #undef UDP_WILDCARD_DELIVERY */ + +/* How do we create unsigned long constants? */ +#define ULONG_CONST(a) a ## UL + +/* Must we have a CTTY for fsetown? */ +#define USE_FSETOWNCTTY 1 + +/* Can we use SIGPOLL for tty IO? */ +/* #undef USE_TTY_SIGPOLL */ + +/* Can we use SIGPOLL for UDP? */ +/* #undef USE_UDP_SIGPOLL */ + /* Version number of package */ -#define VERSION "4.0.99i" +#define VERSION "4.2.0" -/* Define if your processor stores words with the most significant byte first - (like Motorola and SPARC, unlike Intel and VAX). */ -/* #undef WORDS_BIGENDIAN */ +/* ISC: Want IPv6? */ +#define WANT_IPV6 -/* Define if on AIX 3. +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +/* XXX manually fixed to be MI */ +#include +#if _BYTE_ORDER == _BIG_ENDIAN +#define WORDS_BIGENDIAN +#endif + +/* Handle ss_family */ +#if !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE___SS_FAMILY_IN_SS) +# define ss_family __ss_family +# define ss_len __ss_len +#endif /* !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE_SA_FAMILY_IN_SS) */ + +/* Define to 1 if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE /* # undef _ALL_SOURCE */ #endif -/* Define if on MINIX. */ +/* Define to 1 if on MINIX. */ /* #undef _MINIX */ -/* Define if the system does not provide POSIX.1 features except with this - defined. */ +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ /* #undef _POSIX_1_SOURCE */ -/* Define if you need to in order for stat and other things to work. */ +/* Define to 1 if you need to in order for `stat' and other things to work. */ /* #undef _POSIX_SOURCE */ -/* Define if type `char' is unsigned and you are not using gcc. */ +/* Define to 1 if type `char' is unsigned and you are not using gcc. */ #ifndef __CHAR_UNSIGNED__ /* # undef __CHAR_UNSIGNED__ */ #endif -/* Define to empty if the keyword `const' is not conform to ANSI C. */ +/* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ @@ -933,3 +1137,6 @@ /* Define to `int' if doesn't define. */ /* #undef uid_t */ + +/* Does the compiler like "volatile"? */ +/* #undef volatile */ diff --git a/usr.sbin/ntp/libisc/Makefile b/usr.sbin/ntp/libisc/Makefile new file mode 100644 index 000000000000..daca27196e6c --- /dev/null +++ b/usr.sbin/ntp/libisc/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1 2003/12/04 16:41:56 drochner Exp $ + +NOLINKLIB=# defined +NOMAN= # defined +NOPIC= # defined +NOLINT= # defined + +LIB= isc +SRCS= assertions.c error.c interfaceiter.c isc_strerror.c lib.c mem.c \ + msgcat.c net.c strerror.c +NTPSRCDIR=lib${LIB} + +.include diff --git a/usr.sbin/ntp/libntp/Makefile b/usr.sbin/ntp/libntp/Makefile index 70cd7126618a..7ee8550cce50 100644 --- a/usr.sbin/ntp/libntp/Makefile +++ b/usr.sbin/ntp/libntp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2002/09/18 13:31:54 lukem Exp $ +# $NetBSD: Makefile,v 1.5 2003/12/04 16:41:56 drochner Exp $ NOLINKLIB=# defined NOMAN= # defined @@ -7,14 +7,15 @@ NOLINT= # defined LIB= ntp SRCS= a_md5encrypt.c adjtime.c atoint.c atolfp.c atouint.c \ - authencrypt.c authkeys.c authparity.c authreadkeys.c authusekey.c \ + authkeys.c authreadkeys.c authusekey.c \ buftvtots.c caljulian.c calleapwhen.c caltontp.c calyearstart.c \ clocktime.c clocktypes.c decodenetnum.c dofptoa.c dolfptoa.c \ emalloc.c findconfig.c fptoa.c fptoms.c getopt.c hextoint.c \ hextolfp.c humandate.c inttoa.c lib_strbuf.c machines.c md5c.c \ memmove.c mfptoa.c mfptoms.c modetoa.c mstolfp.c msutotsf.c \ msyslog.c netof.c numtoa.c numtohost.c octtoint.c prettydate.c \ - ranny.c refnumtoa.c statestr.c syssignal.c systime.c tsftomsu.c \ + ranny.c refnumtoa.c socktoa.c socktohost.c statestr.c syssignal.c \ + systime.c tsftomsu.c \ tstotv.c tvtoa.c tvtots.c uglydate.c uinttoa.c utvtoa.c ymd2yd.c \ mfp_mul.c binio.c ieee754io.c gpstolfp.c recvbuff.c iosignal.c \ icom.c audio.c diff --git a/usr.sbin/ntp/ntp-keygen/Makefile b/usr.sbin/ntp/ntp-keygen/Makefile new file mode 100644 index 000000000000..2c65dd762c6e --- /dev/null +++ b/usr.sbin/ntp/ntp-keygen/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.1 2003/12/04 16:41:57 drochner Exp $ + +PROG= ntp-keygen +NOMAN= #defined +SRCS= ntp-keygen.c + +NTPSRCDIR= util + +.include diff --git a/usr.sbin/ntp/ntpd/Makefile b/usr.sbin/ntp/ntpd/Makefile index 2186cf1646ac..a47441923796 100644 --- a/usr.sbin/ntp/ntpd/Makefile +++ b/usr.sbin/ntp/ntpd/Makefile @@ -1,28 +1,31 @@ -# $NetBSD: Makefile,v 1.8 2002/01/13 15:49:11 manu Exp $ +# $NetBSD: Makefile,v 1.9 2003/12/04 16:41:57 drochner Exp $ PROG= ntpd MAN= ntpd.8 -SRCS= jupiter.h map_vme.c ntp_config.c ntp_control.c ntp_crypto.c \ - ntp_filegen.c \ +SRCS= jupiter.h cmd_args.c map_vme.c ntp_config.c ntp_control.c \ + ntp_crypto.c ntp_filegen.c \ ntp_intres.c ntp_io.c ntp_loopfilter.c ntp_monitor.c ntp_peer.c \ ntp_proto.c ntp_refclock.c ntp_request.c ntp_restrict.c ntp_timer.c \ ntp_util.c ntpd.c refclock_acts.c refclock_arbiter.c refclock_arc.c \ refclock_as2201.c refclock_atom.c refclock_bancomm.c \ refclock_chronolog.c refclock_chu.c refclock_conf.c refclock_datum.c \ refclock_dumbclock.c refclock_fg.c refclock_gpsvme.c refclock_heath.c \ - refclock_hpgps.c refclock_irig.c refclock_jupiter.c refclock_leitch.c \ - refclock_local.c refclock_msfees.c refclock_mx4200.c refclock_nmea.c \ + refclock_hopfser.c refclock_hopfpci.c \ + refclock_hpgps.c refclock_irig.c refclock_jjy.c refclock_jupiter.c \ + refclock_leitch.c \ + refclock_local.c refclock_msfees.c refclock_mx4200.c \ + refclock_neoclock4x.c refclock_nmea.c \ refclock_oncore.c refclock_palisade.c refclock_palisade.h \ refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ptbacts.c \ refclock_shm.c refclock_tpro.c refclock_trak.c refclock_true.c \ - refclock_ulink.c refclock_usno.c refclock_wwv.c refclock_wwvb.c + refclock_ulink.c refclock_usno.c refclock_wwv.c refclock_wwvb.c \ + refclock_zyfer.c .include -CFLAGS+= -DHAVE_CLOCKCTL LIBPARSE!= cd ${.CURDIR}/../libparse && ${PRINTOBJDIR} -LDADD+= -L${LIBPARSE} -lparse -DPADD+= ${LIBPARSE}/libparse.a +LDADD+= -L${LIBPARSE} -lparse -L${LIBISC} -lisc +DPADD+= ${LIBPARSE}/libparse.a ${LIBISC}/libisc.a LDADD+= -lm DPADD+= ${LIBM} diff --git a/usr.sbin/ntp/ntpdc/Makefile b/usr.sbin/ntp/ntpdc/Makefile index c5fc5dc878ec..65198d757e43 100644 --- a/usr.sbin/ntp/ntpdc/Makefile +++ b/usr.sbin/ntp/ntpdc/Makefile @@ -1,7 +1,11 @@ -# $NetBSD: Makefile,v 1.4 2001/02/27 19:07:53 cgd Exp $ +# $NetBSD: Makefile,v 1.5 2003/12/04 16:41:57 drochner Exp $ PROG= ntpdc MAN= ntpdc.8 SRCS= ntpdc.c ntpdc_ops.c +LDADD+= -L${LIBISC} -lisc +LDADD+= -ledit -ltermcap +DPADD+= ${LIBISC}/libisc.a + .include diff --git a/usr.sbin/ntp/ntpq/Makefile b/usr.sbin/ntp/ntpq/Makefile index 79422f43d921..fc0529c44f0b 100644 --- a/usr.sbin/ntp/ntpq/Makefile +++ b/usr.sbin/ntp/ntpq/Makefile @@ -1,7 +1,11 @@ -# $NetBSD: Makefile,v 1.3 2000/06/12 13:57:43 simonb Exp $ +# $NetBSD: Makefile,v 1.4 2003/12/04 16:41:57 drochner Exp $ PROG= ntpq MAN= ntpq.8 SRCS= ntpq.c ntpq_ops.c +LDADD+= -L${LIBISC} -lisc +LDADD+= -ledit -ltermcap +DPADD+= ${LIBISC}/libisc.a + .include diff --git a/usr.sbin/ntp/ntptrace/Makefile b/usr.sbin/ntp/ntptrace/Makefile index 9716e3225d70..279d2588ee20 100644 --- a/usr.sbin/ntp/ntptrace/Makefile +++ b/usr.sbin/ntp/ntptrace/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2000/06/12 13:57:44 simonb Exp $ +# $NetBSD: Makefile,v 1.4 2003/12/04 16:41:57 drochner Exp $ -PROG= ntptrace MAN= ntptrace.8 -SRCS= ntptrace.c +SCRIPTS=ntptrace.awk .include diff --git a/usr.sbin/ntp/ntptrace/ntptrace.awk b/usr.sbin/ntp/ntptrace/ntptrace.awk new file mode 100755 index 000000000000..cc9341fee198 --- /dev/null +++ b/usr.sbin/ntp/ntptrace/ntptrace.awk @@ -0,0 +1,128 @@ +#!/usr/bin/awk -f +# +# Based on a perl script by +# John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org +# +# awk version by Frederick Bruckman + + +function usage() { + print "usage: ntptrace [-nv] [-r retries] [host]" + exit 1 +} + +function getargs( command, i, argc, argv, done) { + host = "localhost" + retries = 1 + + command = "getopt nr:v" + for (i = 2; i <= ARGC; i++) + command = command " " ARGV[i-1] + command | getline + argc = split($0, argv) + for (i = 1; i <= argc; i++) { + if (argv[i] == "-n") use_numeric = 1 + if (argv[i] == "-v") do_verbose = 1 + if (argv[i] == "-r") retries = argv[++i] + if (done == 1) host = argv[i] + if (argv[i] == "--") done = 1 + } + + if (retries != retries + 0) + usage() +} + +function do_one_server( command, i, nvars, vars, stratum, peer, offset, + rootdelay, rootdispersion, refid, srcadr) { + rootdelay = 0 + rootdispersion = 0 + srcadr = "" + stratum = 255 + + command = "ntpq -n -c rv " host + while (command | getline) { + gsub(/,/,"") + nvars = split($0, vars) + for (i = 1; i <= nvars; i++) { + if (vars[i] ~ /stratum=/) { + stratum = vars[i] + sub(/stratum=/, "", stratum) + } + if (vars[i] ~ /peer=/) { + peer = vars[i] + sub(/peer=/, "", peer) + } + if (vars[i] ~ /offset=/) { + offset = vars[i] + sub(/offset=/, "", offset) + } + if (vars[i] ~ /phase=/) { + offset = vars[i] + sub(/phase=/, "", offset) + } + if (vars[i] ~ /rootdelay=/) { + rootdelay = vars[i] + sub(/rootdelay=/, "", rootdelay) + } + if (vars[i] ~ /rootdispersion=/) { + rootdispersion = vars[i] + sub(/rootdispersion=/, "", rootdispersion) + } + if (vars[i] ~ /refid=/) { + refid = vars[i] + sub(/refid=/, "", refid) + } + } + } + + if (stratum == 255) + exit 1 + + offset = offset / 1000 + syncdistance = (rootdispersion + (rootdelay / 2)) / 1000 + + printf("%s: stratum %d, offset %f, synch distance %f", + dhost(host), stratum, offset, syncdistance) + if ($stratum == 1) printf(", refid '%s'", refid) + printf("\n") + + if (stratum == 0 || stratum == 1 || stratum == 16) + exit 0 + if (refid ~ /127\.127\.[0-9]{1,3}\.[0-9]{1,3}/) + exit 0 + + command = "ntpq -n -c 'pstat " peer "' " host + while (command | getline) { + gsub(/,/,"") + nvars = split($0, vars) + for (i = 1; i <= nvars; i++) { + if (vars[i] ~ /srcadr=/) { + srcadr = vars[i] + sub(/srcadr=/, "", srcadr) + } + } + } + + if (srcadr ~ /127\.127\.[0-9]{1,3}\.[0-9]{1,3}/ || srcadr == "") + exit 0 + + host = srcadr + do_one_server() +} + +function dhost(myhost, command) { + command = "host " myhost + while (command | getline) { + if (use_numeric) { + if (/address/) return $NF + } else { + if (/pointer/) return $NF + } + } + return myhost +} + +BEGIN { + getargs() + do_one_server() +} diff --git a/usr.sbin/ntp/scripts/mkver b/usr.sbin/ntp/scripts/mkver index ac1bf050a40f..e9b9994ea039 100755 --- a/usr.sbin/ntp/scripts/mkver +++ b/usr.sbin/ntp/scripts/mkver @@ -1,16 +1,28 @@ #!/bin/sh +# $NetBSD: mkver,v 1.3 2003/12/04 16:41:57 drochner Exp $ + PROG=${1-UNKNOWN} ConfStr="$PROG" -ConfStr="$ConfStr 4.0.99i" +ConfStr="$ConfStr 4.2.0" -case "" in +case "$CSET" in '') ;; + *) ConfStr="$ConfStr@$CSET" ;; +esac + +case "@LIBRSAREF@" in + '') + case "@AUTOKEY@" in + '') ;; + *) ConfStr="${ConfStr}-a" ;; + esac + ;; *) ConfStr="${ConfStr}-r" ;; esac -ConfStr="$ConfStr `date`" +ConfStr="$ConfStr `LC_TIME=C date`" if [ ! -f .version ]; then echo 0 > .version