From: Harlan Stenn Date: Fri, 19 Jan 2001 19:21:40 +0000 (-0000) Subject: ChangeLog, config.h.in, ntp_proto.c: X-Git-Tag: NTP_4_0_99_M~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cdfd7d8b0f344a056e0986d9ccb8ebfd38f5c95;p=thirdparty%2Fntp.git ChangeLog, config.h.in, ntp_proto.c: * config.h.in: Regenerated - became empty somehow. Reported by John.Hay@icomtek.csir.co.za * ntpd/ntp_proto.c (clock_select): Fix sdisp calculation. From Dave Mills. bk: 3a6893c4uF1as52aUZ4badRxwPz2sw --- diff --git a/ChangeLog b/ChangeLog index 6ba5331079..85cf5db20e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2001-01-19 Harlan Stenn + * config.h.in: Regenerated - became empty somehow. + Reported by John.Hay@icomtek.csir.co.za + + * ntpd/ntp_proto.c (clock_select): Fix sdisp calculation. + From Dave Mills. + * util/ntp-genkeys.c: * ntpd/refclock_chu.c: * ntpd/refclock_atom.c: diff --git a/config.h.in b/config.h.in index 61025bcef7..b287f5be83 100644 --- a/config.h.in +++ b/config.h.in @@ -1 +1,963 @@ /* config.h.in. Generated automatically from configure.in by autoheader. */ +/* Package */ +#undef PACKAGE + +/* Version */ +#undef VERSION + +/* debugging code */ +#undef DEBUG + +/* Minutes per DST adjustment */ +#undef DSTMINUTES + +/* MD5 authentication */ +#undef MD5 + +/* DES authentication (COCOM only) */ +#undef DES + +/* time_t */ +#undef time_t + +/* reference clock interface */ +#undef REFCLOCK + +/* Audio CHU? */ +#undef AUDIO_CHU + +/* PARSE kernel PLL PPS support */ +#undef PPS_SYNC + +/* ACTS modem service */ +#undef CLOCK_ACTS + +/* Arbiter 1088A/B GPS receiver */ +#undef CLOCK_ARBITER + +/* DHD19970505: ARCRON support. */ +#undef CLOCK_ARCRON_MSF + +/* Austron 2200A/2201A GPS receiver */ +#undef CLOCK_AS2201 + +/* PPS interface */ +#undef CLOCK_ATOM + +/* PPS auxiliary interface for ATOM */ +#undef PPS_SAMPLE + +/* Datum/Bancomm bc635/VME interface */ +#undef CLOCK_BANC + +/* Diems Computime Radio Clock */ +#undef CLOCK_COMPUTIME + +/* Chronolog K-series WWVB receiver */ +#undef CLOCK_CHRONOLOG + +/* Datum Programmable Time System */ +#undef CLOCK_DATUM + +/* ELV/DCF7000 clock */ +#undef CLOCK_DCF7000 + +/* Dumb generic hh:mm:ss local clock */ +#undef CLOCK_DUMBCLOCK + +/* Forum Graphic GPS datating station driver */ +#undef CLOCK_FG + +/* TrueTime GPS receiver/VME interface */ +#undef CLOCK_GPSVME + +/* Heath GC-1000 WWV/WWVH receiver */ +#undef CLOCK_HEATH + +/* HOPF 6021 clock */ +#undef CLOCK_HOPF6021 + +/* HP 58503A GPS receiver */ +#undef CLOCK_HPGPS + +/* Sun IRIG audio decoder */ +#undef CLOCK_IRIG + +/* Rockwell Jupiter GPS clock */ +#undef CLOCK_JUPITER + +/* Leitch CSD 5300 Master Clock System Driver */ +#undef CLOCK_LEITCH + +/* local clock reference */ +#undef CLOCK_LOCAL + +/* Meinberg clocks */ +#undef CLOCK_MEINBERG + +/* EES M201 MSF receiver */ +#undef CLOCK_MSFEES + +/* Magnavox MX4200 GPS receiver */ +#undef CLOCK_MX4200 + +/* NMEA GPS receiver */ +#undef CLOCK_NMEA + +/* Motorola UT Oncore GPS */ +#undef CLOCK_ONCORE + +/* Palisade clock */ +#undef CLOCK_PALISADE + +/* PARSE driver interface */ +#undef CLOCK_PARSE + +/* Conrad parallel port radio clock */ +#undef CLOCK_PCF + +/* PCL 720 clock support */ +#undef CLOCK_PPS720 + +/* PST/Traconex 1020 WWV/WWVH receiver */ +#undef CLOCK_PST + +/* PTB modem service */ +#undef CLOCK_PTBACTS + +/* DCF77 raw time code */ +#undef CLOCK_RAWDCF + +/* RCC 8000 clock */ +#undef CLOCK_RCC8000 + +/* Schmid DCF77 clock */ +#undef CLOCK_SCHMID + +/* clock thru shared memory */ +#undef CLOCK_SHM + +/* Spectracom 8170/Netclock/2 WWVB receiver */ +#undef CLOCK_SPECTRACOM + +/* KSI/Odetics TPRO/S GPS receiver/IRIG interface */ +#undef CLOCK_TPRO + +/* TRAK 8810 GPS receiver */ +#undef CLOCK_TRAK + +/* Trimble GPS receiver/TAIP protocol */ +#undef CLOCK_TRIMTAIP + +/* Trimble GPS receiver/TSIP protocol */ +#undef CLOCK_TRIMTSIP + +/* Kinemetrics/TrueTime receivers */ +#undef CLOCK_TRUETIME + +/* Ultralink M320 WWVB receiver */ +#undef CLOCK_ULINK + +/* USNO modem service */ +#undef CLOCK_USNO + +/* WHARTON 400A Series protocol */ +#undef CLOCK_WHARTON_400A + +/* WWV audio driver */ +#undef CLOCK_WWV + +/* VARITEXT protocol */ +#undef CLOCK_VARITEXT + +/* define if we need to declare int errno; */ +#undef DECL_ERRNO + +/* define if we may declare int h_errno; */ +#undef DECL_H_ERRNO + +/* define if it's OK to declare char *sys_errlist[]; */ +#undef CHAR_SYS_ERRLIST + +/* define if it's OK to declare int syscall P((int, struct timeval *, struct timeval *)); */ +#undef DECL_SYSCALL + +/* define if we have syscall is buggy (Solaris 2.4) */ +#undef SYSCALL_BUG + +/* Do we need extra room for SO_RCVBUF? (HPUX <8) */ +#undef NEED_RCVBUF_SLOP + +/* Should we open the broadcast socket? */ +#undef OPEN_BCAST_SOCKET + +/* Do we want the HPUX FindConfig()? */ +#undef NEED_HPUX_FINDCONFIG + +/* canonical system (cpu-vendor-os) string */ +#undef STR_SYSTEM + +/* 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 */ +#undef HAVE_SA_LEN_IN_STRUCT_SOCKADDR + +/* define if struct clockinfo has hz */ +#undef HAVE_HZ_IN_STRUCT_CLOCKINFO + +/* define if struct sigaction has sa_sigaction */ +#undef HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION + +/* define if struct clockinfo has tickadj */ +#undef HAVE_TICKADJ_IN_STRUCT_CLOCKINFO + +/* 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 */ +#undef HAVE_PROTOTYPES + +/* define if setpgrp takes 0 arguments */ +#undef HAVE_SETPGRP_0 + +/* hardwire a value for tick? */ +#undef PRESET_TICK + +/* hardwire a value for tickadj? */ +#undef PRESET_TICKADJ + +/* 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? */ +#undef USE_FSETOWNCTTY + +/* can we use SIGIO for tcp and udp IO? */ +#undef HAVE_SIGNALED_IO + +/* can we use SIGPOLL for UDP? */ +#undef USE_UDP_SIGPOLL + +/* can we use SIGPOLL for tty IO? */ +#undef USE_TTY_SIGPOLL + +/* should we use clock_settime()? */ +#undef USE_CLOCK_SETTIME + +/* do we want the CHU driver? */ +#undef CLOCK_CHU + +/* 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? */ +#undef KERNEL_PLL + +/* does the kernel support multicasting IP? */ +#undef MCAST + +/* do we have ntp_{adj,get}time in libc? */ +#undef NTP_SYSCALLS_LIBC + +/* 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? */ +#undef NEED_S_CHAR_TYPEDEF + +/* include the GDT Surveying code? */ +#undef GDT_SURVEYING + +/* does SIOCGIFCONF return size in the buffer? */ +#undef SIZE_RETURNED_IN_BUFFER + +/* what is the name of TICK in the kernel? */ +#undef K_TICK_NAME + +/* Is K_TICK_NAME (nsec_per_tick, for example) in nanoseconds? */ +#undef TICK_NANO + +/* what is the name of TICKADJ in the kernel? */ +#undef K_TICKADJ_NAME + +/* Is K_TICKADJ_NAME (hrestime_adj, for example) in nanoseconds? */ +#undef TICKADJ_NANO + +/* what is (probably) the name of DOSYNCTODR in the kernel? */ +#undef K_DOSYNCTODR_NAME + +/* what is (probably) the name of NOPRINTF in the kernel? */ +#undef K_NOPRINTF_NAME + +/* 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 */ +#undef NLIST_STRUCT +#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? */ +#undef QSORT_USES_VOID_P + +/* What is the fallback value for HZ? */ +#undef DEFAULT_HZ + +/* Do we need to override the system's idea of HZ? */ +#undef OVERRIDE_HZ + +/* Do we want the SCO clock hacks? */ +#undef SCO5_CLOCK + +/* Do we want the ReliantUNIX clock hacks? */ +#undef RELIANTUNIX_CLOCK + +/* 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 have the interface in the Draft RFC */ +#undef HAVE_PPSAPI + +/* Do we need to #define _SVID3 when we #include ? */ +#undef TERMIOS_NEEDS__SVID3 + +/* Do we have support for SHMEM_STATUS? */ +#undef ONCORE_SHMEM_STATUS + +/***/ + +/* Which way should we declare... */ + +/* 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 + +/* memset()? */ +#undef DECL_MEMSET_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 + +#undef ULONG_CONST + +/* Autokey? */ +#undef AUTOKEY + +/* Define if you have the header file. */ +#undef HAVE_ARPA_NAMESER_H + +/* Do we have audio support? */ +#undef HAVE_AUDIO + +/* Define if you have the header file. */ +#undef HAVE_BSTRING_H + +/* Define if you have the `clock_settime' function. */ +#undef HAVE_CLOCK_SETTIME + +/* Define if you have the `daemon' function. */ +#undef HAVE_DAEMON + +/* Define if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the `finite' function. */ +#undef HAVE_FINITE + +/* Define if you have the `getbootfile' function. */ +#undef HAVE_GETBOOTFILE + +/* Define if you have the `getdtablesize' function. */ +#undef HAVE_GETDTABLESIZE + +/* Define if you have the `getrusage' function. */ +#undef HAVE_GETRUSAGE + +/* Define if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the `getuid' function. */ +#undef HAVE_GETUID + +/* Define if you have the `hstrerror' function. */ +#undef HAVE_HSTRERROR + +/* Define if you have the header file. */ +#undef HAVE_IEEEFP_H + +/* Define if you have the `isfinite' function. */ +#undef HAVE_ISFINITE + +/* Define if you have the `kvm_open' function. */ +#undef HAVE_KVM_OPEN + +/* Define if you have the `K_open' function. */ +#undef HAVE_K_OPEN + +/* Define if you have the `advapi32' library (-ladvapi32). */ +#undef HAVE_LIBADVAPI32 + +/* Define if you have the `elf' library (-lelf). */ +#undef HAVE_LIBELF + +/* Define if you have the `gen' library (-lgen). */ +#undef HAVE_LIBGEN + +/* Define if you have the `kvm' library (-lkvm). */ +#undef HAVE_LIBKVM + +/* Define if you have the `ld' library (-lld). */ +#undef HAVE_LIBLD + +/* Define if you have the `mld' library (-lmld). */ +#undef HAVE_LIBMLD + +/* Define if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the `posix4' library (-lposix4). */ +#undef HAVE_LIBPOSIX4 + +/* Define if you have the `readline' library (-lreadline). */ +#undef HAVE_LIBREADLINE + +/* Define if you have the `rt' library (-lrt). */ +#undef HAVE_LIBRT + +/* Define if you have the `socket' library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define if you have the header file. */ +#undef HAVE_MACHINE_INLINE_H + +/* Define if you have the header file. */ +#undef HAVE_MATH_H + +/* Define if you have the `memcpy' function. */ +#undef HAVE_MEMCPY + +/* Define if you have the `memlk' function. */ +#undef HAVE_MEMLK + +/* Define if you have the `memmove' function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define if you have the `memset' function. */ +#undef HAVE_MEMSET + +/* Define if you have the `mkstemp' function. */ +#undef HAVE_MKSTEMP + +/* Define if you have the `mktime' function. */ +#undef HAVE_MKTIME + +/* Define if you have the `mlockall' function. */ +#undef HAVE_MLOCKALL + +/* Define if you have the `mrand48' function. */ +#undef HAVE_MRAND48 + +/* Define if you have the header file. */ +#undef HAVE_NETDB_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_IN_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_IN_SYSTM_H + +/* Define if you have the header file. */ +#undef HAVE_NETINFO_NI_H + +/* Define if you have the header file. */ +#undef HAVE_NET_IF_H + +/* Define if you have the `nice' function. */ +#undef HAVE_NICE + +/* Define if you have the `nlist' function. */ +#undef HAVE_NLIST + +/* Define if you have the `ntp_adjtime' function. */ +#undef HAVE_NTP_ADJTIME + +/* Define if you have the `ntp_gettime' function. */ +#undef HAVE_NTP_GETTIME + +/* Define if you have the `plock' function. */ +#undef HAVE_PLOCK + +/* Define if you have the header file. */ +#undef HAVE_POLL_H + +/* Define if you have the `pututline' function. */ +#undef HAVE_PUTUTLINE + +/* Define if you have the `pututxline' function. */ +#undef HAVE_PUTUTXLINE + +/* Define if you have the `random' function. */ +#undef HAVE_RANDOM + +/* Define if you have the `readlink' function. */ +#undef HAVE_READLINK + +/* Define if you have the header file. */ +#undef HAVE_RESOLV_H + +/* Define if you have the `rtprio' function. */ +#undef HAVE_RTPRIO + +/* Define if you have the header file. */ +#undef HAVE_SCHED_H + +/* Define if you have the `sched_setscheduler' function. */ +#undef HAVE_SCHED_SETSCHEDULER + +/* Define if you have the `setlinebuf' function. */ +#undef HAVE_SETLINEBUF + +/* Define if you have the `setpgid' function. */ +#undef HAVE_SETPGID + +/* Define if you have the `setpriority' function. */ +#undef HAVE_SETPRIORITY + +/* Define if you have the `setsid' function. */ +#undef HAVE_SETSID + +/* Define if you have the `settimeofday' function. */ +#undef HAVE_SETTIMEOFDAY + +/* Define if you have the `setvbuf' function. */ +#undef HAVE_SETVBUF + +/* Define if you have the header file. */ +#undef HAVE_SGTTY_H + +/* Define if you have the `sigaction' function. */ +#undef HAVE_SIGACTION + +/* Define if you have the `sigset' function. */ +#undef HAVE_SIGSET + +/* Define if you have the `sigsuspend' function. */ +#undef HAVE_SIGSUSPEND + +/* Define if you have the `sigvec' function. */ +#undef HAVE_SIGVEC + +/* Define if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define if you have the `srand48' function. */ +#undef HAVE_SRAND48 + +/* Define if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define if you have the `stime' function. */ +#undef HAVE_STIME + +/* Define if you have the `strchr' function. */ +#undef HAVE_STRCHR + +/* Define if you have the `strdup' function. */ +#undef HAVE_STRDUP + +/* Define if you have the `strerror' function. */ +#undef HAVE_STRERROR + +/* Define if you have the header file. */ +#undef HAVE_STRING_H + +/* Do we have struct ntptimeval? */ +#undef HAVE_STRUCT_NTPTIMEVAL + +/* Define if `time.tv_nsec' is member of `struct ntptimeval'. */ +#undef HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC + +/* Do we have struct timespec? */ +#undef HAVE_STRUCT_TIMESPEC + +/* Define if you have the header file. */ +#undef HAVE_SUN_AUDIOIO_H + +/* Define if you have the `sysconf' function. */ +#undef HAVE_SYSCONF + +/* Define if you have the `sysctl' function. */ +#undef HAVE_SYSCTL + +/* Define if you have the header file. */ +#undef HAVE_SYS_AUDIOIO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_CLKDEFS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_FILE_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_I8253_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_LOCK_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_MODEM_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PCL720_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PPSCLOCK_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PPSTIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PROC_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_RESOURCE_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SCHED_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SELECT_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SIO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SOCKIO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_STREAM_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_STROPTS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SYSCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SYSSGI_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TERMIOS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIMEPPS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIMERS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIMEX_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TPRO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_WAIT_H + +/* Define if the system has the type `s_char'. */ +#undef HAVE_S_CHAR + +/* Define if you have the header file. */ +#undef HAVE_TERMIOS_H + +/* Define if you have the header file. */ +#undef HAVE_TERMIO_H + +/* Define if you have the header file. */ +#undef HAVE_TIMEPPS_H + +/* Define if you have the `timer_create' function. */ +#undef HAVE_TIMER_CREATE + +/* Define if you have the `timer_settime' function. */ +#undef HAVE_TIMER_SETTIME + +/* Define if you have the header file. */ +#undef HAVE_TIMEX_H + +/* Define if you have the `umask' function. */ +#undef HAVE_UMASK + +/* Define if you have the `uname' function. */ +#undef HAVE_UNAME + +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the `updwtmp' function. */ +#undef HAVE_UPDWTMP + +/* Define if you have the `updwtmpx' function. */ +#undef HAVE_UPDWTMPX + +/* Define if you have the header file. */ +#undef HAVE_UTMPX_H + +/* Define if you have the header file. */ +#undef HAVE_UTMP_H + +/* Define if you have the `vsprintf' function. */ +#undef HAVE_VSPRINTF + +/* Define if you have the header file. */ +#undef HAVE__SYS_SYNC_QUEUE_H + +/* Define if you have the header file. */ +#undef HAVE__SYS_SYNC_SEMA_H + +/* Define if you have the `__adjtimex' function. */ +#undef HAVE___ADJTIMEX + +/* Define if you have the `__ntp_gettime' function. */ +#undef HAVE___NTP_GETTIME + +/* Default location of crypto key info */ +#undef NTP_KEYSDIR + +/* Name of package */ +#undef PACKAGE + +/* Define if compiler has function prototypes */ +#undef PROTOTYPES + +/* Public key? */ +#undef PUBKEY + +/* Define as the return type of signal handlers (`int' or `void'). */ +#undef RETSIGTYPE + +/* The size of a `int', as computed by sizeof. */ +#undef SIZEOF_INT + +/* The size of a `long', as computed by sizeof. */ +#undef SIZEOF_LONG + +/* The size of a `signed char', as computed by sizeof. */ +#undef SIZEOF_SIGNED_CHAR + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define if your declares `struct tm'. */ +#undef TM_IN_SYS_TIME + +/* Version number of package */ +#undef VERSION + +/* Define if your processor stores words with the most significant byte first + (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define 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. */ +#undef _MINIX + +/* Define 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. */ +#undef _POSIX_SOURCE + +/* Define if type `char' is unsigned and you are not using gcc. */ +#ifndef __CHAR_UNSIGNED__ +# undef __CHAR_UNSIGNED__ +#endif + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `int' if doesn't define. */ +#undef gid_t + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +#undef inline + +/* Define to `long' if does not define. */ +#undef off_t + +/* Define to `unsigned' if does not define. */ +#undef size_t + +/* Define to `long' if does not define. */ +#undef time_t + +/* Define to `int' if doesn't define. */ +#undef uid_t diff --git a/ntpd/ntp_proto.c b/ntpd/ntp_proto.c index f4ab4b9b5a..bd9d493a1c 100644 --- a/ntpd/ntp_proto.c +++ b/ntpd/ntp_proto.c @@ -1695,18 +1695,15 @@ clock_select(void) } while (1) { sys_maxd = 0; - d = error[0]; + d = 1e9; for (k = i = nlist - 1; i >= 0; i--) { double sdisp = 0; - double dtemp = 0; for (j = nlist - 1; j > 0; j--) { - dtemp += 1. / synch[j]; sdisp += DIFF(peer_list[i]->offset, - peer_list[j]->offset) / - synch[j]; + peer_list[j]->offset); } - sdisp /= dtemp; + sdisp *= synch[i]; if (sdisp > sys_maxd) { sys_maxd = sdisp; k = i;