From: Harlan Stenn Date: Wed, 4 Aug 1999 07:52:11 +0000 (-0000) Subject: ntp_io.c: X-Git-Tag: PRE_ATT_Y2K~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f3184e636e690c7904ee97629d82a6917fd593;p=thirdparty%2Fntp.git ntp_io.c: * ntpd/ntp_io.c (create_sockets): Typo. From: Doug Wells ChangeLog, NEWS, config.h.in, configure, configure.in: * configure.in (ac_cv_struct_ntptimeval): Explicitly look for struct ntptimeval. (ac_cv_var_kernel_pll): Require struct ntptimeval. Linux. Grrr. Reported by: Ronald Kuetemeier Many files: NT and html/driver (Palisade and ???) documentation cleanup. From Sven Dietrich. There is some other html cleanup from Dave Mills in there, too. bk: 37a7f12bT1zHqcl_MDxbCviw1dihLw --- diff --git a/COPYRIGHT b/COPYRIGHT index 04f15c41a..0298597fd 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -89,13 +89,18 @@ This file is automatically generated from html/copyright.htm TrueTime clock driver 38. [41]Ulrich Windl corrected and validated HTML documents according to the HTML DTD + 39. [42]Greg Brackley Major rework of + WINNT port. Clean up recvbuf and iosignal code into separate + modules. + 40. [43]Sven Dietrich Palisade reference + clock driver, NT adj. residuals, integrated Greg's Winnt port. _________________________________________________________________ - [42][LINK] + [44][LINK] - [43]David L. Mills + [45]David L. Mills References @@ -140,5 +145,7 @@ References 39. mailto: tsuruoka@nc.fukuoka-u.ac.jp 40. mailto: vixie@vix.com 41. mailto: Ulrich.Windl@rz.uni-regensburg.de - 42. file://localhost/backroom/ntp4-rsaref/html/index.htm - 43. mailto:mills@udel.edu + 42. mailto: greg.brackley@bigfoot.com + 43. mailto: Sven_Dietrich@trimble.COM + 44. file://localhost/backroom/ntp4/html/index.htm + 45. mailto:mills@udel.edu diff --git a/ChangeLog b/ChangeLog index 210430057..bdf952947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +1999-07-31 Harlan Stenn + + * ntpd/ntp_io.c (create_sockets): Typo. + From: Doug Wells + +1999-07-29 Harlan Stenn + + * configure.in (ac_cv_struct_ntptimeval): Explicitly look for + struct ntptimeval. + (ac_cv_var_kernel_pll): Require struct ntptimeval. + Linux. Grrr. + Reported by: Ronald Kuetemeier + +1999-07-27 Harlan Stenn + + * configure.in: 4.0.95 + + * ports/winnt: New release + From: Sven Dietrich + 1999-07-26 Harlan Stenn * libntp/machines.c (ntp_set_tod): Bugfix diff --git a/NEWS b/NEWS index b73e6c747..df73dede7 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ -* NT port cleanup +(4.0.95) +* NT port cleanup/replacement +* a few portability fixes * VARITEXT Parse clock added (4.0.94) * PPS updates (including ntp.config options) diff --git a/config.h.in b/config.h.in index 6db4f5564..ec282b6d7 100644 --- a/config.h.in +++ b/config.h.in @@ -849,6 +849,9 @@ /* Define if compiler has function prototypes */ #undef PROTOTYPES +/* Do we have struct ntptimeval? */ +#undef HAVE_STRUCT_NTPTIMEVAL + /* Does ntptimeval use struct timespec? */ #undef TIMESPEC_IN_NTPTIMEVAL diff --git a/configure b/configure index fc09576c6..46b84cd2c 100755 --- a/configure +++ b/configure @@ -966,7 +966,7 @@ fi PACKAGE=ntp -VERSION=4.0.94b +VERSION=4.0.95 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } @@ -4145,13 +4145,48 @@ EOF fi +echo $ac_n "checking for struct ntptimeval""... $ac_c" 1>&6 +echo "configure:4150: checking for struct ntptimeval" >&5 +if eval "test \"\${ac_cv_struct_ntptimeval+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct ntptimeval n; +; return 0; } +EOF +if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_ntptimeval=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_ntptimeval=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_ntptimeval" 1>&6 +if test $ac_cv_struct_ntptimeval = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STRUCT_NTPTIMEVAL 1 +EOF + +fi + echo $ac_n "checking struct ntptimeval for time.tv_nsec""... $ac_c" 1>&6 -echo "configure:4150: checking struct ntptimeval for time.tv_nsec" >&5 +echo "configure:4185: checking struct ntptimeval for time.tv_nsec" >&5 if eval "test \"\${ac_cv_struct_ntptimeval_tv_nsec+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <time.tv_nsec; ; return 0; } EOF -if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_ntptimeval_tv_nsec=yes else @@ -4195,22 +4230,56 @@ EOF fi +echo $ac_n "checking for struct timespec in struct ntptimeval""... $ac_c" 1>&6 +echo "configure:4235: checking for struct timespec in struct ntptimeval" >&5 +if eval "test \"\${ac_cv_struct_ntptimeval_timespec+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct ntptimeval n; n.time.tv_nsec = 0; +; return 0; } +EOF +if { (eval echo configure:4248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_ntptimeval_timespec=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_ntptimeval_timespec=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_ntptimeval_timespec" 1>&6 +if test $ac_cv_struct_ntptimeval_timespec = yes; then + cat >> confdefs.h <<\EOF +#define TIMESPEC_IN_NTPTIMEVAL 1 +EOF + +fi + echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:4200: checking for inline" >&5 +echo "configure:4269: checking for inline" >&5 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -4236,14 +4305,14 @@ EOF esac echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 -echo "configure:4240: checking whether char is unsigned" >&5 +echo "configure:4309: checking whether char is unsigned" >&5 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$GCC" = yes; then # GCC predefines this symbol on systems where it applies. cat > conftest.$ac_ext <&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_char_unsigned=yes else @@ -4300,7 +4369,7 @@ fi case "$host" in $target) echo $ac_n "checking size of signed char""... $ac_c" 1>&6 -echo "configure:4304: checking size of signed char" >&5 +echo "configure:4373: checking size of signed char" >&5 if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4308,7 +4377,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -4319,7 +4388,7 @@ main() exit(0); } EOF -if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_signed_char=`cat conftestval` else @@ -4342,7 +4411,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of signed char""... $ac_c" 1>&6 -echo "configure:4346: checking size of signed char" >&5 +echo "configure:4415: checking size of signed char" >&5 if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4350,7 +4419,7 @@ else ac_cv_sizeof_signed_char=1 else cat > conftest.$ac_ext < main() @@ -4361,7 +4430,7 @@ main() exit(0); } EOF -if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_signed_char=`cat conftestval` else @@ -4390,7 +4459,7 @@ esac case "$host" in $target) echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:4394: checking size of int" >&5 +echo "configure:4463: checking size of int" >&5 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4398,7 +4467,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -4409,7 +4478,7 @@ main() exit(0); } EOF -if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -4432,7 +4501,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:4436: checking size of int" >&5 +echo "configure:4505: checking size of int" >&5 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4440,7 +4509,7 @@ else ac_cv_sizeof_int=4 else cat > conftest.$ac_ext < main() @@ -4451,7 +4520,7 @@ main() exit(0); } EOF -if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -4480,7 +4549,7 @@ esac case "$host" in $target) echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:4484: checking size of long" >&5 +echo "configure:4553: checking size of long" >&5 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4488,7 +4557,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -4499,7 +4568,7 @@ main() exit(0); } EOF -if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -4522,7 +4591,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:4526: checking size of long" >&5 +echo "configure:4595: checking size of long" >&5 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4530,7 +4599,7 @@ else ac_cv_sizeof_long=4 else cat > conftest.$ac_ext < main() @@ -4541,7 +4610,7 @@ main() exit(0); } EOF -if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -4568,12 +4637,12 @@ EOF esac echo $ac_n "checking for s_char""... $ac_c" 1>&6 -echo "configure:4572: checking for s_char" >&5 +echo "configure:4641: checking for s_char" >&5 if eval "test \"\${ac_cv_type_s_char+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4633,12 +4702,12 @@ EOF ;; esac echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:4637: checking for uid_t in sys/types.h" >&5 +echo "configure:4706: checking for uid_t in sys/types.h" >&5 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -4672,12 +4741,12 @@ case "$target" in for ac_func in __adjtimex __ntp_gettime do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4676: checking for $ac_func" >&5 +echo "configure:4745: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4738,12 +4807,12 @@ case "$target" in *) for ac_func in clock_settime do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4742: checking for $ac_func" >&5 +echo "configure:4811: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4796,12 +4865,12 @@ esac for ac_func in daemon getbootfile getdtablesize getrusage do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4800: checking for $ac_func" >&5 +echo "configure:4869: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4852,12 +4921,12 @@ done for ac_func in gettimeofday do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4856: checking for $ac_func" >&5 +echo "configure:4925: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4911,12 +4980,12 @@ case "$target" in *) for ac_func in getuid do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4915: checking for $ac_func" >&5 +echo "configure:4984: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4969,12 +5038,12 @@ esac for ac_func in K_open kvm_open memcpy memmove memset do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4973: checking for $ac_func" >&5 +echo "configure:5042: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5029,12 +5098,12 @@ case "$target" in *) for ac_func in mkstemp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5033: checking for $ac_func" >&5 +echo "configure:5102: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5087,12 +5156,12 @@ esac for ac_func in mktime do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5091: checking for $ac_func" >&5 +echo "configure:5160: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5155,12 +5224,12 @@ case "$target" in *) for ac_func in mlockall do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5159: checking for $ac_func" >&5 +echo "configure:5228: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5213,12 +5282,12 @@ esac for ac_func in nice nlist do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5217: checking for $ac_func" >&5 +echo "configure:5286: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5273,12 +5342,12 @@ case "$target" in *) for ac_func in ntp_adjtime ntp_gettime do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5277: checking for $ac_func" >&5 +echo "configure:5346: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5331,12 +5400,12 @@ esac for ac_func in plock pututline pututxline rtprio do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5335: checking for $ac_func" >&5 +echo "configure:5404: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5387,12 +5456,12 @@ done for ac_func in random srandom mrand48 srand48 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5391: checking for $ac_func" >&5 +echo "configure:5460: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5450,12 +5519,12 @@ case "$target" in *) for ac_func in sched_setscheduler do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5454: checking for $ac_func" >&5 +echo "configure:5523: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5508,12 +5577,12 @@ esac for ac_func in setlinebuf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5512: checking for $ac_func" >&5 +echo "configure:5581: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5564,12 +5633,12 @@ done for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5568: checking for $ac_func" >&5 +echo "configure:5637: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5620,12 +5689,12 @@ done for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5624: checking for $ac_func" >&5 +echo "configure:5693: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5676,12 +5745,12 @@ done for ac_func in strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5680: checking for $ac_func" >&5 +echo "configure:5749: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5744,12 +5813,12 @@ case "$target" in *) for ac_func in timer_create timer_settime do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5748: checking for $ac_func" >&5 +echo "configure:5817: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5806,12 +5875,12 @@ case "$target" in *) for ac_func in umask do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5810: checking for $ac_func" >&5 +echo "configure:5879: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5864,12 +5933,12 @@ esac for ac_func in uname updwtmp updwtmpx vsprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5868: checking for $ac_func" >&5 +echo "configure:5937: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5919,12 +5988,12 @@ done echo $ac_n "checking number of arguments to gettimeofday()""... $ac_c" 1>&6 -echo "configure:5923: checking number of arguments to gettimeofday()" >&5 +echo "configure:5992: checking number of arguments to gettimeofday()" >&5 if eval "test \"\${ac_cv_func_Xettimeofday_nargs+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -5934,7 +6003,7 @@ settimeofday((struct timeval*)0,(struct timezone*)0); ; return 0; } EOF -if { (eval echo configure:5938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_Xettimeofday_nargs=2 else @@ -5956,12 +6025,12 @@ EOF fi echo $ac_n "checking number of arguments taken by setpgrp()""... $ac_c" 1>&6 -echo "configure:5960: checking number of arguments taken by setpgrp()" >&5 +echo "configure:6029: checking number of arguments taken by setpgrp()" >&5 if eval "test \"\${ac_cv_func_setpgrp_nargs+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_setpgrp_nargs=2 else @@ -6000,12 +6069,12 @@ save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -I$srcdir/include" echo $ac_n "checking argument pointer type of qsort()'s compare function and base""... $ac_c" 1>&6 -echo "configure:6004: checking argument pointer type of qsort()'s compare function and base" >&5 +echo "configure:6073: checking argument pointer type of qsort()'s compare function and base" >&5 if eval "test \"\${ac_cv_func_qsort_argtype+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_qsort_argtype=void else @@ -6054,12 +6123,12 @@ esac CFLAGS=$save_CFLAGS echo $ac_n "checking if we need to declare 'errno'""... $ac_c" 1>&6 -echo "configure:6058: checking if we need to declare 'errno'" >&5 +echo "configure:6127: checking if we need to declare 'errno'" >&5 if eval "test \"\${ac_cv_decl_errno+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -6068,7 +6137,7 @@ int main() { errno = 0; ; return 0; } EOF -if { (eval echo configure:6072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_errno=no else @@ -6089,12 +6158,12 @@ EOF esac echo $ac_n "checking if we may declare 'h_errno'""... $ac_c" 1>&6 -echo "configure:6093: checking if we may declare 'h_errno'" >&5 +echo "configure:6162: checking if we may declare 'h_errno'" >&5 if eval "test \"\${ac_cv_decl_h_errno+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef HAVE_NETINET_IN_H @@ -6110,7 +6179,7 @@ int main() { extern int h_errno; ; return 0; } EOF -if { (eval echo configure:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_h_errno=yes else @@ -6131,12 +6200,12 @@ EOF esac echo $ac_n "checking if declaring 'char *sys_errlist' is ok""... $ac_c" 1>&6 -echo "configure:6135: checking if declaring 'char *sys_errlist' is ok" >&5 +echo "configure:6204: checking if declaring 'char *sys_errlist' is ok" >&5 if eval "test \"\${ac_cv_decl_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef HAVE_ERRNO_H @@ -6147,7 +6216,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_errlist=yes else @@ -6168,12 +6237,12 @@ EOF esac echo $ac_n "checking if declaring 'syscall()' is ok""... $ac_c" 1>&6 -echo "configure:6172: checking if declaring 'syscall()' is ok" >&5 +echo "configure:6241: checking if declaring 'syscall()' is ok" >&5 if eval "test \"\${ac_cv_decl_syscall+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_syscall=yes else @@ -6459,7 +6528,7 @@ EOF esac echo $ac_n "checking if we should use a streams device for ifconfig""... $ac_c" 1>&6 -echo "configure:6463: checking if we should use a streams device for ifconfig" >&5 +echo "configure:6532: checking if we should use a streams device for ifconfig" >&5 if eval "test \"\${ac_cv_var_use_streams_device_for_ifconfig+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6469,7 +6538,7 @@ fi echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6 echo $ac_n "checking if we need extra room for SO_RCVBUF""... $ac_c" 1>&6 -echo "configure:6473: checking if we need extra room for SO_RCVBUF" >&5 +echo "configure:6542: checking if we need extra room for SO_RCVBUF" >&5 if eval "test \"\${ac_cv_var_rcvbuf_slop+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6491,7 +6560,7 @@ EOF esac echo $ac_n "checking if we will open the broadcast socket""... $ac_c" 1>&6 -echo "configure:6495: checking if we will open the broadcast socket" >&5 +echo "configure:6564: checking if we will open the broadcast socket" >&5 if eval "test \"\${ac_cv_var_open_bcast_socket+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6516,7 +6585,7 @@ EOF esac echo $ac_n "checking if we want the HPUX version of FindConfig()""... $ac_c" 1>&6 -echo "configure:6520: checking if we want the HPUX version of FindConfig()" >&5 +echo "configure:6589: checking if we want the HPUX version of FindConfig()" >&5 if eval "test \"\${ac_cv_var_hpux_findconfig+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6538,7 +6607,7 @@ EOF esac echo $ac_n "checking if process groups are set with -pid""... $ac_c" 1>&6 -echo "configure:6542: checking if process groups are set with -pid" >&5 +echo "configure:6611: checking if process groups are set with -pid" >&5 if eval "test \"\${ac_cv_arg_setpgrp_negpid+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6574,7 +6643,7 @@ EOF esac echo $ac_n "checking if we need a ctty for F_SETOWN""... $ac_c" 1>&6 -echo "configure:6578: checking if we need a ctty for F_SETOWN" >&5 +echo "configure:6647: checking if we need a ctty for F_SETOWN" >&5 if eval "test \"\${ac_cv_func_ctty_for_f_setown+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6604,7 +6673,7 @@ esac ntp_warning='GRONK' echo $ac_n "checking if we'll use clock_settime or settimeofday or stime""... $ac_c" 1>&6 -echo "configure:6608: checking if we'll use clock_settime or settimeofday or stime" >&5 +echo "configure:6677: checking if we'll use clock_settime or settimeofday or stime" >&5 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in yes*) ntp_warning='' @@ -6633,7 +6702,7 @@ case "$ntp_warning" in esac echo $ac_n "checking if we have a losing syscall()""... $ac_c" 1>&6 -echo "configure:6637: checking if we have a losing syscall()" >&5 +echo "configure:6706: checking if we have a losing syscall()" >&5 if eval "test \"\${ac_cv_var_syscall_bug+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6656,7 +6725,7 @@ EOF esac echo $ac_n "checking for Streams/TLI""... $ac_c" 1>&6 -echo "configure:6660: checking for Streams/TLI" >&5 +echo "configure:6729: checking for Streams/TLI" >&5 if eval "test \"\${ac_cv_var_streams_tli+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6685,12 +6754,12 @@ EOF esac echo $ac_n "checking for SIGIO""... $ac_c" 1>&6 -echo "configure:6689: checking for SIGIO" >&5 +echo "configure:6758: checking for SIGIO" >&5 if eval "test \"\${ac_cv_hdr_def_sigio+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef SIGIO @@ -6713,7 +6782,7 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6 echo $ac_n "checking if we want to use signalled IO""... $ac_c" 1>&6 -echo "configure:6717: checking if we want to use signalled IO" >&5 +echo "configure:6786: checking if we want to use signalled IO" >&5 if eval "test \"\${ac_cv_var_signalled_io+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6764,12 +6833,12 @@ EOF esac echo $ac_n "checking for SIGPOLL""... $ac_c" 1>&6 -echo "configure:6768: checking for SIGPOLL" >&5 +echo "configure:6837: checking for SIGPOLL" >&5 if eval "test \"\${ac_cv_hdr_def_sigpoll+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef SIGPOLL @@ -6792,12 +6861,12 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6 echo $ac_n "checking for SIGSYS""... $ac_c" 1>&6 -echo "configure:6796: checking for SIGSYS" >&5 +echo "configure:6865: checking for SIGSYS" >&5 if eval "test \"\${ac_cv_hdr_def_sigsys+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef SIGSYS @@ -6820,7 +6889,7 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6 echo $ac_n "checking if we can use SIGPOLL for UDP I/O""... $ac_c" 1>&6 -echo "configure:6824: checking if we can use SIGPOLL for UDP I/O" >&5 +echo "configure:6893: checking if we can use SIGPOLL for UDP I/O" >&5 if eval "test \"\${ac_cv_var_use_udp_sigpoll+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6875,7 +6944,7 @@ EOF esac echo $ac_n "checking if we can use SIGPOLL for TTY I/O""... $ac_c" 1>&6 -echo "configure:6879: checking if we can use SIGPOLL for TTY I/O" >&5 +echo "configure:6948: checking if we can use SIGPOLL for TTY I/O" >&5 if eval "test \"\${ac_cv_var_use_tty_sigpoll+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6930,7 +6999,7 @@ EOF esac echo $ac_n "checking if nlist() values might require extra indirection""... $ac_c" 1>&6 -echo "configure:6934: checking if nlist() values might require extra indirection" >&5 +echo "configure:7003: checking if nlist() values might require extra indirection" >&5 if eval "test \"\${ac_cv_var_nlist_extra_indirection+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6952,7 +7021,7 @@ EOF esac echo $ac_n "checking for a minimum recommended value of tickadj""... $ac_c" 1>&6 -echo "configure:6956: checking for a minimum recommended value of tickadj" >&5 +echo "configure:7025: checking for a minimum recommended value of tickadj" >&5 if eval "test \"\${ac_cv_var_min_rec_tickadj+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6975,7 +7044,7 @@ EOF esac echo $ac_n "checking if the TTY code permits PARENB and IGNPAR""... $ac_c" 1>&6 -echo "configure:6979: checking if the TTY code permits PARENB and IGNPAR" >&5 +echo "configure:7048: checking if the TTY code permits PARENB and IGNPAR" >&5 if eval "test \"\${ac_cv_var_no_parenb_ignpar+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7000,7 +7069,7 @@ EOF esac echo $ac_n "checking if we're including debugging code""... $ac_c" 1>&6 -echo "configure:7004: checking if we're including debugging code" >&5 +echo "configure:7073: checking if we're including debugging code" >&5 # Check whether --enable-debugging or --disable-debugging was given. if test "${enable_debugging+set}" = set; then enableval="$enable_debugging" @@ -7018,7 +7087,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for a the number of minutes in a DST adjustment""... $ac_c" 1>&6 -echo "configure:7022: checking for a the number of minutes in a DST adjustment" >&5 +echo "configure:7091: checking for a the number of minutes in a DST adjustment" >&5 # Check whether --enable-dst_minutes or --disable-dst_minutes was given. if test "${enable_dst_minutes+set}" = set; then enableval="$enable_dst_minutes" @@ -7034,7 +7103,7 @@ EOF echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we have the tty_clk line discipline/streams module""... $ac_c" 1>&6 -echo "configure:7038: checking if we have the tty_clk line discipline/streams module" >&5 +echo "configure:7107: checking if we have the tty_clk line discipline/streams module" >&5 if eval "test \"\${ac_cv_var_tty_clk+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7050,7 +7119,7 @@ EOF esac echo $ac_n "checking for the ppsclock streams module""... $ac_c" 1>&6 -echo "configure:7054: checking for the ppsclock streams module" >&5 +echo "configure:7123: checking for the ppsclock streams module" >&5 if eval "test \"\${ac_cv_var_ppsclock+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7066,7 +7135,7 @@ EOF esac echo $ac_n "checking for kernel multicast support""... $ac_c" 1>&6 -echo "configure:7070: checking for kernel multicast support" >&5 +echo "configure:7139: checking for kernel multicast support" >&5 if eval "test \"\${ac_cv_var_mcast+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7074,7 +7143,7 @@ else case "$target" in i386-sequent-sysv4) ;; *) cat > conftest.$ac_ext < #ifdef IP_ADD_MEMBERSHIP @@ -7101,7 +7170,7 @@ EOF esac echo $ac_n "checking availability of ntp_{adj,get}time()""... $ac_c" 1>&6 -echo "configure:7105: checking availability of ntp_{adj,get}time()" >&5 +echo "configure:7174: checking availability of ntp_{adj,get}time()" >&5 if eval "test \"\${ac_cv_var_ntp_syscalls+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7115,7 +7184,7 @@ else ac_cv_var_ntp_syscalls=libc ;; *) cat > conftest.$ac_ext < #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) @@ -7155,12 +7224,12 @@ EOF esac echo $ac_n "checking if sys/timex.h has STA_FLL""... $ac_c" 1>&6 -echo "configure:7159: checking if sys/timex.h has STA_FLL" >&5 +echo "configure:7228: checking if sys/timex.h has STA_FLL" >&5 if eval "test \"\${ac_cv_var_sta_fll+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef STA_FLL @@ -7182,46 +7251,12 @@ fi echo "$ac_t""$ac_cv_var_sta_fll" 1>&6 -echo $ac_n "checking for struct timespec in struct ntptimeval""... $ac_c" 1>&6 -echo "configure:7187: checking for struct timespec in struct ntptimeval" >&5 -if eval "test \"\${ac_cv_struct_ntptimeval_timespec+set}\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct ntptimeval n; n.time.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:7200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_ntptimeval_timespec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_ntptimeval_timespec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_ntptimeval_timespec" 1>&6 -if test $ac_cv_struct_ntptimeval_timespec = yes; then - cat >> confdefs.h <<\EOF -#define TIMESPEC_IN_NTPTIMEVAL 1 -EOF - -fi - echo $ac_n "checking if we have kernel PLL support""... $ac_c" 1>&6 -echo "configure:7221: checking if we have kernel PLL support" >&5 +echo "configure:7256: checking if we have kernel PLL support" >&5 if eval "test \"\${ac_cv_var_kernel_pll+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - case "$ac_cv_header_sys_timex_h$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in + case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in *no*) ac_cv_var_kernel_pll=no ;; @@ -7241,7 +7276,7 @@ EOF esac echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer""... $ac_c" 1>&6 -echo "configure:7245: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 +echo "configure:7280: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 if eval "test \"\${ac_cv_var_size_returned_in_buffer+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7270,7 +7305,7 @@ esac echo $ac_n "checking if we want to use MD5 authentication""... $ac_c" 1>&6 -echo "configure:7274: checking if we want to use MD5 authentication" >&5 +echo "configure:7309: checking if we want to use MD5 authentication" >&5 if eval "test \"\${ac_cv_var_use_md5+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7295,10 +7330,10 @@ esac # Check for ioctls TIOCGPPSEV echo $ac_n "checking ioctl TIOCGPPSEV""... $ac_c" 1>&6 -echo "configure:7299: checking ioctl TIOCGPPSEV" >&5 +echo "configure:7334: checking ioctl TIOCGPPSEV" >&5 if test "$ac_cv_header_termios_h" = "yes"; then cat > conftest.$ac_ext < #ifdef TIOCGPPSEV @@ -7331,10 +7366,10 @@ echo "$ac_t""$ntp_ok" 1>&6 # Check for ioctls TIOCSPPS echo $ac_n "checking ioctl TIOCSPPS""... $ac_c" 1>&6 -echo "configure:7335: checking ioctl TIOCSPPS" >&5 +echo "configure:7370: checking ioctl TIOCSPPS" >&5 if test "$ac_cv_header_termios_h" = "yes"; then cat > conftest.$ac_ext < #ifdef TIOCSPPS @@ -7366,10 +7401,10 @@ echo "$ac_t""$ntp_ok" 1>&6 # Check for ioctls CIOGETEV echo $ac_n "checking ioctl CIOGETEV""... $ac_c" 1>&6 -echo "configure:7370: checking ioctl CIOGETEV" >&5 +echo "configure:7405: checking ioctl CIOGETEV" >&5 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then cat > conftest.$ac_ext < #ifdef CIOGETEV @@ -7426,17 +7461,17 @@ esac # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG ac_safe=`echo "linux/serial.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/serial.h""... $ac_c" 1>&6 -echo "configure:7430: checking for linux/serial.h" >&5 +echo "configure:7465: checking for linux/serial.h" >&5 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7458,11 +7493,11 @@ else fi echo $ac_n "checking ioctl TIOCGSERIAL""... $ac_c" 1>&6 -echo "configure:7462: checking ioctl TIOCGSERIAL" >&5 +echo "configure:7497: checking ioctl TIOCGSERIAL" >&5 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in yesyes) cat > conftest.$ac_ext < typedef int u_int; @@ -7509,7 +7544,7 @@ ntp_refclock=no # HPUX only, and by explicit request echo $ac_n "checking Datum/Bancomm bc635/VME interface""... $ac_c" 1>&6 -echo "configure:7513: checking Datum/Bancomm bc635/VME interface" >&5 +echo "configure:7548: checking Datum/Bancomm bc635/VME interface" >&5 # Check whether --enable-BANCOMM or --disable-BANCOMM was given. if test "${enable_BANCOMM+set}" = set; then enableval="$enable_BANCOMM" @@ -7533,7 +7568,7 @@ esac #HPUX only, and only by explicit request echo $ac_n "checking TrueTime GPS receiver/VME interface""... $ac_c" 1>&6 -echo "configure:7537: checking TrueTime GPS receiver/VME interface" >&5 +echo "configure:7572: checking TrueTime GPS receiver/VME interface" >&5 # Check whether --enable-GPSVME or --disable-GPSVME was given. if test "${enable_GPSVME+set}" = set; then enableval="$enable_GPSVME" @@ -7556,7 +7591,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking for PCL720 clock support""... $ac_c" 1>&6 -echo "configure:7560: checking for PCL720 clock support" >&5 +echo "configure:7595: checking for PCL720 clock support" >&5 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in yesyesyes) cat >> confdefs.h <<\EOF @@ -7572,7 +7607,7 @@ esac echo "$ac_t""$ans" 1>&6 echo $ac_n "checking for SHM clock attached thru shared memory""... $ac_c" 1>&6 -echo "configure:7576: checking for SHM clock attached thru shared memory" >&5 +echo "configure:7611: checking for SHM clock attached thru shared memory" >&5 # Check whether --enable-SHM or --disable-SHM was given. if test "${enable_SHM+set}" = set; then enableval="$enable_SHM" @@ -7591,7 +7626,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for ONCORE Motorola VP/UT Oncore GPS""... $ac_c" 1>&6 -echo "configure:7595: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 +echo "configure:7630: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 # Check whether --enable-ONCORE or --disable-ONCORE was given. if test "${enable_ONCORE+set}" = set; then enableval="$enable_ONCORE" @@ -7613,7 +7648,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks""... $ac_c" 1>&6 -echo "configure:7617: checking for default inclusion of all suitable non-PARSE clocks" >&5 +echo "configure:7652: checking for default inclusion of all suitable non-PARSE clocks" >&5 # Check whether --enable-all-clocks or --disable-all-clocks was given. if test "${enable_all_clocks+set}" = set; then enableval="$enable_all_clocks" @@ -7625,7 +7660,7 @@ fi echo "$ac_t""$ntp_eac" 1>&6 echo $ac_n "checking if we have support for PARSE clocks""... $ac_c" 1>&6 -echo "configure:7629: checking if we have support for PARSE clocks" >&5 +echo "configure:7664: checking if we have support for PARSE clocks" >&5 case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in *yes*) ntp_canparse=yes @@ -7637,14 +7672,14 @@ echo "$ac_t""$ntp_canparse" 1>&6 # Requires modem control echo $ac_n "checking ACTS modem service""... $ac_c" 1>&6 -echo "configure:7641: checking ACTS modem service" >&5 +echo "configure:7676: checking ACTS modem service" >&5 # Check whether --enable-ACTS or --disable-ACTS was given. if test "${enable_ACTS+set}" = set; then enableval="$enable_ACTS" ntp_ok=$enableval else cat > conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -7677,7 +7712,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Arbiter 1088A/B GPS receiver""... $ac_c" 1>&6 -echo "configure:7681: checking Arbiter 1088A/B GPS receiver" >&5 +echo "configure:7716: checking Arbiter 1088A/B GPS receiver" >&5 # Check whether --enable-ARBITER or --disable-ARBITER was given. if test "${enable_ARBITER+set}" = set; then enableval="$enable_ARBITER" @@ -7696,7 +7731,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Arcron MSF receiver""... $ac_c" 1>&6 -echo "configure:7700: checking Arcron MSF receiver" >&5 +echo "configure:7735: checking Arcron MSF receiver" >&5 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given. if test "${enable_ARCRON_MSF+set}" = set; then enableval="$enable_ARCRON_MSF" @@ -7715,7 +7750,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Austron 2200A/2201A GPS receiver""... $ac_c" 1>&6 -echo "configure:7719: checking Austron 2200A/2201A GPS receiver" >&5 +echo "configure:7754: checking Austron 2200A/2201A GPS receiver" >&5 # Check whether --enable-AS2201 or --disable-AS2201 was given. if test "${enable_AS2201+set}" = set; then enableval="$enable_AS2201" @@ -7734,7 +7769,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking PPS interface""... $ac_c" 1>&6 -echo "configure:7738: checking PPS interface" >&5 +echo "configure:7773: checking PPS interface" >&5 # Check whether --enable-ATOM or --disable-ATOM was given. if test "${enable_ATOM+set}" = set; then enableval="$enable_ATOM" @@ -7753,7 +7788,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking CHU modem/decoder""... $ac_c" 1>&6 -echo "configure:7757: checking CHU modem/decoder" >&5 +echo "configure:7792: checking CHU modem/decoder" >&5 # Check whether --enable-CHU or --disable-CHU was given. if test "${enable_CHU+set}" = set; then enableval="$enable_CHU" @@ -7773,7 +7808,7 @@ echo "$ac_t""$ntp_ok" 1>&6 ac_refclock_chu=$ntp_ok echo $ac_n "checking CHU audio/decoder""... $ac_c" 1>&6 -echo "configure:7777: checking CHU audio/decoder" >&5 +echo "configure:7812: checking CHU audio/decoder" >&5 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given. if test "${enable_AUDIO_CHU+set}" = set; then enableval="$enable_AUDIO_CHU" @@ -7797,7 +7832,7 @@ esac # Not under HP-UX echo $ac_n "checking Datum Programmable Time System""... $ac_c" 1>&6 -echo "configure:7801: checking Datum Programmable Time System" >&5 +echo "configure:7836: checking Datum Programmable Time System" >&5 # Check whether --enable-DATUM or --disable-DATUM was given. if test "${enable_DATUM+set}" = set; then enableval="$enable_DATUM" @@ -7823,14 +7858,14 @@ echo "$ac_t""$ntp_ok" 1>&6 # Requires modem control echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver""... $ac_c" 1>&6 -echo "configure:7827: checking Heath GC-1000 WWV/WWVH receiver" >&5 +echo "configure:7862: checking Heath GC-1000 WWV/WWVH receiver" >&5 # Check whether --enable-HEATH or --disable-HEATH was given. if test "${enable_HEATH+set}" = set; then enableval="$enable_HEATH" ntp_ok=$enableval else cat > conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -7863,7 +7898,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking HP 58503A GPS receiver""... $ac_c" 1>&6 -echo "configure:7867: checking HP 58503A GPS receiver" >&5 +echo "configure:7902: checking HP 58503A GPS receiver" >&5 # Check whether --enable-HPGPS or --disable-HPGPS was given. if test "${enable_HPGPS+set}" = set; then enableval="$enable_HPGPS" @@ -7882,7 +7917,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Sun IRIG audio decoder""... $ac_c" 1>&6 -echo "configure:7886: checking Sun IRIG audio decoder" >&5 +echo "configure:7921: checking Sun IRIG audio decoder" >&5 # Check whether --enable-IRIG or --disable-IRIG was given. if test "${enable_IRIG+set}" = set; then enableval="$enable_IRIG" @@ -7910,7 +7945,7 @@ case "$ntp_ok$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in esac echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver""... $ac_c" 1>&6 -echo "configure:7914: checking Leitch CSD 5300 Master Clock System Driver" >&5 +echo "configure:7949: checking Leitch CSD 5300 Master Clock System Driver" >&5 # Check whether --enable-LEITCH or --disable-LEITCH was given. if test "${enable_LEITCH+set}" = set; then enableval="$enable_LEITCH" @@ -7929,7 +7964,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking local clock reference""... $ac_c" 1>&6 -echo "configure:7933: checking local clock reference" >&5 +echo "configure:7968: checking local clock reference" >&5 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given. if test "${enable_LOCAL_CLOCK+set}" = set; then enableval="$enable_LOCAL_CLOCK" @@ -7948,7 +7983,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking EES M201 MSF receiver""... $ac_c" 1>&6 -echo "configure:7952: checking EES M201 MSF receiver" >&5 +echo "configure:7987: checking EES M201 MSF receiver" >&5 # Check whether --enable-MSFEES or --disable-MSFEES was given. if test "${enable_MSFEES+set}" = set; then enableval="$enable_MSFEES" @@ -7968,7 +8003,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not Ultrix echo $ac_n "checking Magnavox MX4200 GPS receiver""... $ac_c" 1>&6 -echo "configure:7972: checking Magnavox MX4200 GPS receiver" >&5 +echo "configure:8007: checking Magnavox MX4200 GPS receiver" >&5 # Check whether --enable-MX4200 or --disable-MX4200 was given. if test "${enable_MX4200+set}" = set; then enableval="$enable_MX4200" @@ -7995,7 +8030,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking NMEA GPS receiver""... $ac_c" 1>&6 -echo "configure:7999: checking NMEA GPS receiver" >&5 +echo "configure:8034: checking NMEA GPS receiver" >&5 # Check whether --enable-NMEA or --disable-NMEA was given. if test "${enable_NMEA+set}" = set; then enableval="$enable_NMEA" @@ -8014,7 +8049,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for Palisade clock""... $ac_c" 1>&6 -echo "configure:8018: checking for Palisade clock" >&5 +echo "configure:8053: checking for Palisade clock" >&5 # Check whether --enable-PALISADE or --disable-PALISADE was given. if test "${enable_PALISADE+set}" = set; then enableval="$enable_PALISADE" @@ -8040,7 +8075,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver""... $ac_c" 1>&6 -echo "configure:8044: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 +echo "configure:8079: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 # Check whether --enable-PST or --disable-PST was given. if test "${enable_PST+set}" = set; then enableval="$enable_PST" @@ -8060,7 +8095,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not Ultrix echo $ac_n "checking Rockwell Jupiter GPS receiver""... $ac_c" 1>&6 -echo "configure:8064: checking Rockwell Jupiter GPS receiver" >&5 +echo "configure:8099: checking Rockwell Jupiter GPS receiver" >&5 # Check whether --enable-JUPITER or --disable-JUPITER was given. if test "${enable_JUPITER+set}" = set; then enableval="$enable_JUPITER" @@ -8088,14 +8123,14 @@ esac # Requires modem control echo $ac_n "checking PTB modem service""... $ac_c" 1>&6 -echo "configure:8092: checking PTB modem service" >&5 +echo "configure:8127: checking PTB modem service" >&5 # Check whether --enable-PTBACTS or --disable-PTBACTS was given. if test "${enable_PTBACTS+set}" = set; then enableval="$enable_PTBACTS" ntp_ok=$enableval else cat > conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -8128,7 +8163,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface""... $ac_c" 1>&6 -echo "configure:8132: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 +echo "configure:8167: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 # Check whether --enable-TPRO or --disable-TPRO was given. if test "${enable_TPRO+set}" = set; then enableval="$enable_TPRO" @@ -8156,7 +8191,7 @@ case "$ntp_ok$ac_cv_header_sys_tpro" in esac echo $ac_n "checking TRAK 8810 GPS receiver""... $ac_c" 1>&6 -echo "configure:8160: checking TRAK 8810 GPS receiver" >&5 +echo "configure:8195: checking TRAK 8810 GPS receiver" >&5 # Check whether --enable-TRAK or --disable-TRAK was given. if test "${enable_TRAK+set}" = set; then enableval="$enable_TRAK" @@ -8175,7 +8210,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Chrono-log K-series WWVB receiver""... $ac_c" 1>&6 -echo "configure:8179: checking Chrono-log K-series WWVB receiver" >&5 +echo "configure:8214: checking Chrono-log K-series WWVB receiver" >&5 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given. if test "${enable_CHRONOLOG+set}" = set; then enableval="$enable_CHRONOLOG" @@ -8194,7 +8229,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Dumb generic hh:mm:ss local clock""... $ac_c" 1>&6 -echo "configure:8198: checking Dumb generic hh:mm:ss local clock" >&5 +echo "configure:8233: checking Dumb generic hh:mm:ss local clock" >&5 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given. if test "${enable_DUMBCLOCK+set}" = set; then enableval="$enable_DUMBCLOCK" @@ -8214,7 +8249,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not on a vax-dec-bsd echo $ac_n "checking Kinemetrics/TrueTime receivers""... $ac_c" 1>&6 -echo "configure:8218: checking Kinemetrics/TrueTime receivers" >&5 +echo "configure:8253: checking Kinemetrics/TrueTime receivers" >&5 # Check whether --enable-TRUETIME or --disable-TRUETIME was given. if test "${enable_TRUETIME+set}" = set; then enableval="$enable_TRUETIME" @@ -8243,7 +8278,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver""... $ac_c" 1>&6 -echo "configure:8247: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 +echo "configure:8282: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 # Check whether --enable-WWVB or --disable-WWVB was given. if test "${enable_WWVB+set}" = set; then enableval="$enable_WWVB" @@ -8263,14 +8298,14 @@ echo "$ac_t""$ntp_ok" 1>&6 # Requires modem control echo $ac_n "checking USNO modem service""... $ac_c" 1>&6 -echo "configure:8267: checking USNO modem service" >&5 +echo "configure:8302: checking USNO modem service" >&5 # Check whether --enable-USNO or --disable-USNO was given. if test "${enable_USNO+set}" = set; then enableval="$enable_USNO" ntp_ok=$enableval else cat > conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -8303,7 +8338,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for default inclusion of all suitable PARSE clocks""... $ac_c" 1>&6 -echo "configure:8307: checking for default inclusion of all suitable PARSE clocks" >&5 +echo "configure:8342: checking for default inclusion of all suitable PARSE clocks" >&5 # Check whether --enable-parse-clocks or --disable-parse-clocks was given. if test "${enable_parse_clocks+set}" = set; then enableval="$enable_parse_clocks" @@ -8333,7 +8368,7 @@ ntp_parseutil=no ntp_rawdcf=no echo $ac_n "checking Diem Computime Radio Clock""... $ac_c" 1>&6 -echo "configure:8337: checking Diem Computime Radio Clock" >&5 +echo "configure:8372: checking Diem Computime Radio Clock" >&5 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given. if test "${enable_COMPUTIME+set}" = set; then enableval="$enable_COMPUTIME" @@ -8358,7 +8393,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking ELV/DCF7000 clock""... $ac_c" 1>&6 -echo "configure:8362: checking ELV/DCF7000 clock" >&5 +echo "configure:8397: checking ELV/DCF7000 clock" >&5 # Check whether --enable-DCF7000 or --disable-DCF7000 was given. if test "${enable_DCF7000+set}" = set; then enableval="$enable_DCF7000" @@ -8383,7 +8418,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking HOPF 6021 clock""... $ac_c" 1>&6 -echo "configure:8387: checking HOPF 6021 clock" >&5 +echo "configure:8422: checking HOPF 6021 clock" >&5 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given. if test "${enable_HOPF6021+set}" = set; then enableval="$enable_HOPF6021" @@ -8408,7 +8443,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Meinberg clocks""... $ac_c" 1>&6 -echo "configure:8412: checking Meinberg clocks" >&5 +echo "configure:8447: checking Meinberg clocks" >&5 # Check whether --enable-MEINBERG or --disable-MEINBERG was given. if test "${enable_MEINBERG+set}" = set; then enableval="$enable_MEINBERG" @@ -8433,7 +8468,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking DCF77 raw time code""... $ac_c" 1>&6 -echo "configure:8437: checking DCF77 raw time code" >&5 +echo "configure:8472: checking DCF77 raw time code" >&5 # Check whether --enable-RAWDCF or --disable-RAWDCF was given. if test "${enable_RAWDCF+set}" = set; then enableval="$enable_RAWDCF" @@ -8462,7 +8497,7 @@ esac case "$ntp_rawdcf" in yes) echo $ac_n "checking if we must enable parity for RAWDCF""... $ac_c" 1>&6 -echo "configure:8466: checking if we must enable parity for RAWDCF" >&5 +echo "configure:8501: checking if we must enable parity for RAWDCF" >&5 if eval "test \"\${ac_cv_var_rawdcf_parity+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8490,7 +8525,7 @@ EOF esac echo $ac_n "checking RCC 8000 clock""... $ac_c" 1>&6 -echo "configure:8494: checking RCC 8000 clock" >&5 +echo "configure:8529: checking RCC 8000 clock" >&5 # Check whether --enable-RCC8000 or --disable-RCC8000 was given. if test "${enable_RCC8000+set}" = set; then enableval="$enable_RCC8000" @@ -8515,7 +8550,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Schmid DCF77 clock""... $ac_c" 1>&6 -echo "configure:8519: checking Schmid DCF77 clock" >&5 +echo "configure:8554: checking Schmid DCF77 clock" >&5 # Check whether --enable-SCHMID or --disable-SCHMID was given. if test "${enable_SCHMID+set}" = set; then enableval="$enable_SCHMID" @@ -8540,7 +8575,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Trimble GPS receiver/TAIP protocol""... $ac_c" 1>&6 -echo "configure:8544: checking Trimble GPS receiver/TAIP protocol" >&5 +echo "configure:8579: checking Trimble GPS receiver/TAIP protocol" >&5 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given. if test "${enable_TRIMTAIP+set}" = set; then enableval="$enable_TRIMTAIP" @@ -8565,7 +8600,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Trimble GPS receiver/TSIP protocol""... $ac_c" 1>&6 -echo "configure:8569: checking Trimble GPS receiver/TSIP protocol" >&5 +echo "configure:8604: checking Trimble GPS receiver/TSIP protocol" >&5 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given. if test "${enable_TRIMTSIP+set}" = set; then enableval="$enable_TRIMTSIP" @@ -8590,7 +8625,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking WHARTON 400A Series clock""... $ac_c" 1>&6 -echo "configure:8594: checking WHARTON 400A Series clock" >&5 +echo "configure:8629: checking WHARTON 400A Series clock" >&5 # Check whether --enable-WHARTON or --disable-WHARTON was given. if test "${enable_WHARTON+set}" = set; then enableval="$enable_WHARTON" @@ -8615,7 +8650,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking VARITEXT clock""... $ac_c" 1>&6 -echo "configure:8619: checking VARITEXT clock" >&5 +echo "configure:8654: checking VARITEXT clock" >&5 # Check whether --enable-VARITEXT or --disable-VARITEXT was given. if test "${enable_VARITEXT+set}" = set; then enableval="$enable_VARITEXT" @@ -8642,7 +8677,7 @@ esac echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6 -echo "configure:8646: checking if we need to make and use the parse libraries" >&5 +echo "configure:8681: checking if we need to make and use the parse libraries" >&5 ans=no case "$ntp_libparse" in yes) @@ -8669,7 +8704,7 @@ echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we need to make and use the RSAREF library""... $ac_c" 1>&6 -echo "configure:8673: checking if we need to make and use the RSAREF library" >&5 +echo "configure:8708: checking if we need to make and use the RSAREF library" >&5 ans=no if test -f $srcdir/rsaref2/source/rsa.c then @@ -8687,7 +8722,7 @@ echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can make dcf parse utilities""... $ac_c" 1>&6 -echo "configure:8691: checking if we can make dcf parse utilities" >&5 +echo "configure:8726: checking if we can make dcf parse utilities" >&5 ans=no if test "$ntp_parseutil" = "yes"; then case "$target" in @@ -8702,7 +8737,7 @@ echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6 -echo "configure:8706: checking if we can build kernel streams modules for parse" >&5 +echo "configure:8741: checking if we can build kernel streams modules for parse" >&5 ans=no if test "$ntp_parseutil$ac_cv_header_sys_stropts_h" = "yesyes"; then case "$target" in @@ -8727,7 +8762,7 @@ fi echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6 -echo "configure:8731: checking if we need basic refclock support" >&5 +echo "configure:8766: checking if we need basic refclock support" >&5 if test "$ntp_refclock" = "yes"; then cat >> confdefs.h <<\EOF #define REFCLOCK 1 @@ -8739,7 +8774,7 @@ echo "$ac_t""$ntp_refclock" 1>&6 echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6 -echo "configure:8743: checking if we want HP-UX adjtimed support" >&5 +echo "configure:8778: checking if we want HP-UX adjtimed support" >&5 case "$target" in *-*-hpux[56789]*) ans=yes @@ -8757,7 +8792,7 @@ fi echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6 -echo "configure:8761: checking if we can read kmem" >&5 +echo "configure:8796: checking if we can read kmem" >&5 if eval "test \"\${ac_cv_var_can_kmem+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8810,7 +8845,7 @@ EOF esac echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6 -echo "configure:8814: checking if adjtime is accurate" >&5 +echo "configure:8849: checking if adjtime is accurate" >&5 if eval "test \"\${ac_cv_var_adjtime_is_accurate+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8862,7 +8897,7 @@ EOF esac echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6 -echo "configure:8866: checking the name of 'tick' in the kernel" >&5 +echo "configure:8901: checking the name of 'tick' in the kernel" >&5 if eval "test \"\${ac_cv_var_nlist_tick+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8906,7 +8941,7 @@ EOF esac # echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6 -echo "configure:8910: checking for the units of 'tick'" >&5 +echo "configure:8945: checking for the units of 'tick'" >&5 if eval "test \"\${ac_cv_var_tick_nano+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8930,7 +8965,7 @@ EOF esac # echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6 -echo "configure:8934: checking the name of 'tickadj' in the kernel" >&5 +echo "configure:8969: checking the name of 'tickadj' in the kernel" >&5 if eval "test \"\${ac_cv_var_nlist_tickadj+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8983,7 +9018,7 @@ EOF esac # echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6 -echo "configure:8987: checking for the units of 'tickadj'" >&5 +echo "configure:9022: checking for the units of 'tickadj'" >&5 if eval "test \"\${ac_cv_var_tickadj_nano+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9007,7 +9042,7 @@ EOF esac # echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6 -echo "configure:9011: checking half-heartedly for 'dosynctodr' in the kernel" >&5 +echo "configure:9046: checking half-heartedly for 'dosynctodr' in the kernel" >&5 if eval "test \"\${ac_cv_var_nlist_dosynctodr+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9060,7 +9095,7 @@ EOF esac # echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6 -echo "configure:9064: checking half-heartedly for 'noprintf' in the kernel" >&5 +echo "configure:9099: checking half-heartedly for 'noprintf' in the kernel" >&5 if eval "test \"\${ac_cv_var_nlist_noprintf+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9110,7 +9145,7 @@ esac echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6 -echo "configure:9114: checking for a default value for 'tick'" >&5 +echo "configure:9149: checking for a default value for 'tick'" >&5 if eval "test \"\${ac_cv_var_tick+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9154,7 +9189,7 @@ EOF esac echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6 -echo "configure:9158: checking for a default value for 'tickadj'" >&5 +echo "configure:9193: checking for a default value for 'tickadj'" >&5 if eval "test \"\${ac_cv_var_tickadj+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9261,7 +9296,7 @@ esac echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6 -echo "configure:9265: checking if we want and can make the tickadj utility" >&5 +echo "configure:9300: checking if we want and can make the tickadj utility" >&5 if eval "test \"\${ac_cv_make_tickadj+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9277,7 +9312,7 @@ esac echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6 -echo "configure:9281: checking if we want and can make the ntptime utility" >&5 +echo "configure:9316: checking if we want and can make the ntptime utility" >&5 if eval "test \"\${ac_cv_make_ntptime+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9306,7 +9341,7 @@ case "$ac_cv_make_ntptime" in esac echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6 -echo "configure:9310: checking if we want UDP wildcard delivery" >&5 +echo "configure:9345: checking if we want UDP wildcard delivery" >&5 if eval "test \"\${ac_cv_var_udp_wildcard_delivery+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9385,7 +9420,7 @@ case "$host" in esac echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6 -echo "configure:9389: checking if we should always slew the time" >&5 +echo "configure:9424: checking if we should always slew the time" >&5 if eval "test \"\${ac_cv_var_slew_always+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9425,7 +9460,7 @@ EOF esac echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6 -echo "configure:9429: checking if we should step and slew the time" >&5 +echo "configure:9464: checking if we should step and slew the time" >&5 if eval "test \"\${ac_cv_var_step_slew+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9468,7 +9503,7 @@ EOF esac echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6 -echo "configure:9472: checking if ntpdate should step the time" >&5 +echo "configure:9507: checking if ntpdate should step the time" >&5 if eval "test \"\${ac_cv_var_ntpdate_step+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9499,7 +9534,7 @@ EOF esac echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6 -echo "configure:9503: checking if we should sync TODR clock every hour" >&5 +echo "configure:9538: checking if we should sync TODR clock every hour" >&5 if eval "test \"\${ac_cv_var_sync_todr+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9532,7 +9567,7 @@ EOF esac echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6 -echo "configure:9536: checking if we should avoid kernel FLL bug" >&5 +echo "configure:9571: checking if we should avoid kernel FLL bug" >&5 if eval "test \"\${ac_cv_var_kernel_fll_bug+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/configure.in b/configure.in index c28cca6af..506ab3b83 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ AC_CANONICAL_SYSTEM AC_DEFINE_UNQUOTED(STR_SYSTEM, "$target") AM_CONFIG_HEADER(config.h) AC_ARG_PROGRAM -AM_INIT_AUTOMAKE(ntp, 4.0.94b) +AM_INIT_AUTOMAKE(ntp, 4.0.95) AC_PREREQ(2.13) ac_cv_var_oncore_ok=no @@ -418,6 +418,16 @@ if test $ac_cv_struct_clockinfo_has_tickadj = yes; then AC_DEFINE(HAVE_TICKADJ_IN_STRUCT_CLOCKINFO) fi +AC_CACHE_CHECK([for struct ntptimeval], ac_cv_struct_ntptimeval, +[AC_TRY_COMPILE([ +#include +#include ], +[struct ntptimeval n;], +ac_cv_struct_ntptimeval=yes, ac_cv_struct_ntptimeval=no)]) +if test $ac_cv_struct_ntptimeval = yes; then + AC_DEFINE(HAVE_STRUCT_NTPTIMEVAL, 1, [Do we have struct ntptimeval?]) +fi + AC_CACHE_CHECK(struct ntptimeval for time.tv_nsec, ac_cv_struct_ntptimeval_tv_nsec, [AC_TRY_COMPILE([ #ifdef HAVE_SYS_TIME_H @@ -443,6 +453,15 @@ if test "$ac_cv_struct_ntptimeval_tv_nsec" = "yes"; then AC_DEFINE(HAVE_TV_NSEC_IN_NTPTIMEVAL) fi +AC_CACHE_CHECK([for struct timespec in struct ntptimeval], ac_cv_struct_ntptimeval_timespec, +[AC_TRY_COMPILE([#include +#include ], +[struct ntptimeval n; n.time.tv_nsec = 0;], +ac_cv_struct_ntptimeval_timespec=yes, ac_cv_struct_ntptimeval_timespec=no)]) +if test $ac_cv_struct_ntptimeval_timespec = yes; then + AC_DEFINE(TIMESPEC_IN_NTPTIMEVAL, 1, [Does ntptimeval use struct timespec?]) +fi + AC_C_INLINE AC_C_CHAR_UNSIGNED dnl CROSS_COMPILE? case "$host" in @@ -1248,18 +1267,9 @@ AC_CACHE_CHECK(if sys/timex.h has STA_FLL, ac_cv_var_sta_fll, #endif ], ac_cv_var_sta_fll=yes, ac_cv_var_sta_fll=no)]) -AC_CACHE_CHECK([for struct timespec in struct ntptimeval], ac_cv_struct_ntptimeval_timespec, -[AC_TRY_COMPILE([#include -#include ], -[struct ntptimeval n; n.time.tv_nsec = 0;], -ac_cv_struct_ntptimeval_timespec=yes, ac_cv_struct_ntptimeval_timespec=no)]) -if test $ac_cv_struct_ntptimeval_timespec = yes; then - AC_DEFINE(TIMESPEC_IN_NTPTIMEVAL, 1, [Does ntptimeval use struct timespec?]) -fi - AC_CACHE_CHECK(if we have kernel PLL support, ac_cv_var_kernel_pll, [dnl ac_cv_var_ntp_syscalls is {no,libc,kernel} -case "$ac_cv_header_sys_timex_h$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in +case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in *no*) ac_cv_var_kernel_pll=no ;; diff --git a/html/copyright.htm b/html/copyright.htm index c5863c887..125b187f7 100644 --- a/html/copyright.htm +++ b/html/copyright.htm @@ -188,6 +188,14 @@ GPS driver, generic TrueTime clock driver
  • Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> corrected and validated HTML documents according to the HTML DTD
  • + +
  • +Greg Brackley <greg.brackley@bigfoot.com> +Major rework of WINNT port. Clean up recvbuf and iosignal code into separate modules.
  • + +
  • +Sven Dietrich <sven_dietrich@trimble.com> +Palisade reference clock driver, NT adj. residuals, integrated Greg's Winnt port.

  • - - - Trimble Palisade Receiver -

    -Trimble Palisade Receiver

    +

    +Trimble Palisade Receiver +

    -
    -

    -Synopsis

    -Address: 127.127.29.u -
    Reference ID: GPS -
    Driver ID: GPS_PALISADE -
    Serial Port: /dev/palisadeu -
    Serial I/O: 9600 baud, 8-bits, 1-stop, odd parity -

    -Description

    -The refclock_palisade driver interfaces NTP with Trimble -Navigation's Palisade Smart Antenna GPS receiver. The driver reports its -ID as "GPS_PALISADE'' to indicate the Trimble Palisade GPS as precision -time source. -

    This documentation describes version V2.43 (May 11, 1999) -of the source. -

    Driver code for the Palisade receiver is being maintained -by: -
    Sven Dietrich -
    Trimble Navigation -Ltd. -
    645 North Mary Ave. -
    Sunnyvale, CA 94088-3642 -
      -

    Introduction -

    The following information should answer most questions -regarding driver installation, deployment and debugging. -

    -Receiver

    -The Palisade GPS receiver is an 8-channel smart antenna based -on SierraTM GPS technology. It is designed for static timing -applications. -

    Palisade generates a PPS synchronized to UTC within +/- -100 ns.  This level of precision is achieved using an over-determined -time solution, a 40 ns pulse steering resolution and a T-RAIM (Time-Receiver -Autonomous Integrity Monitor) algorithm. An external event input with 40 -nanosecond resolution, is available for asynchronous time transfer applications. -

    Palisade self-surveys at power-up using TRAIM. No initialization -of the receiver is required by the driver. It is recommended that Palisade -be allowed to complete self-survey before starting NTP. +

    +

    + +

    +Synopsis

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    Address: 
    +
    127.127.29.u
    +
    Reference ID:
    +
    GPS
    +
    Driver ID:
    +
    GPS_PALISADE
    +
    Serial Port:
    +
    /dev/palisadeu
    +
    Serial I/O:
    +
    9600 baud, 8-bits, 1-stop, odd parity
    + +

    +Description

    +The refclock_palisade driver supports Trimble +Navigation's Palisade Smart Antenna GPS receiver. +
    Additional software and information about the Palisade GPS is available +from: http://www.trimble.com/oem/ntp. +
    Latest NTP driver source, executables and documentation is maintained +at: +ftp://ftp.trimble.com/pub/ntp +

    This documentation describes version 7.12 of the GPS Firmware and version +2.46 (July 15, 1999) and later, of the driver source.
      -

    -Compatibility

    -The driver has been tested on the following platforms: +

    +Operating System Compatibility

    +The Palisade driver has been tested on the following software and hardware +platforms:
      - +
    - + - + + + - + - + + + - + - + + + - + - + + + - + - + + + -
    PlatformPlatformOperating SystemOperating System NTP SourcesAccuracy
    i386 (PC) i386 (PC) Linux 2.xLinux NTP Distribution10 us
    i386 (PC) i386 (PC) Windows NTWindows NT ftp://ftp.trimble.com/pub/ntp1 ms
    SUNSUNSolaris 2.5x, 2.6, 7.0Solaris 2.x NTP Distribution50 us
    Hewlett-PackardHewlett-PackardHPUX 9, 10, 11HPUX 9, 10, 11 http://us-support.external.hp.com50 us
    -

    If you are compiling NTP from a software distribution, -you can obtain latest software source, documentation, and compatibility -information from: -

        ftp://ftp.trimble.com/pub/ntp -

    A proprietary port of NTP for Windows NT is also posted -on the above ftp site. -
    Windows NT support is available from Trimble on a no-support, -beta-evaluation basis only. -

    This driver is compatible with the following versions -of Palisade: + +Various + +Free BSD + +NTP Distribution + +20 us + + + +

    +GPS Receiver

    +The Palisade GPS receiver is an 8-channel smart antenna, housing the GPS +receiver, antenna and interface in a single unit, and is designed for rooftop +deployment in static timing applications. +

    Palisade generates a PPS synchronized to UTC within +/- 100 ns.  +The Palisade's external event input with 40 nanosecond resolution is utilized +by the Palisade NTP driver for asynchronous precision time transfer. +

    No user initialization of the receiver is required. This driver is compatible +with the following versions of Palisade:
      - +
    - - - - - - - - - - - - -
    -
    Version
    +
    +
    Version
    -
    External Event
    +
    +
    Event Input
    -
    Trimble Part Number
    +
    +
    Trimble Part Number
    -
    7.02
    +
    +
    7.02
    -
    No
    +
    +
    No
    -
    26664-00
    +
    +
    26664-00
    -
    7.02E
    +
    +
    7.02E
    -
    Yes
    +
    +
    Yes
    -
    26664-10
    +
    +
    26664-10
    -
    7.12
    +
    +
    7.12
    -
    Yes
    +
    +
    Yes
    -
    38158-00
    +
    +
    38158-00
    + + +

    +
    Note: When using Palisade 26664-00, you must set fudge flag2 to 1 in +ntp.conf. +See configuration.
    + +
    +

    +GPS Installation

    +A location with unobstructed view of the horizon is recommended. Palisade +is designed to be securely mounted atop standard 3/4 inch threaded pipe. +

    The 12 conductor (dia. 10 mm)  power and I/O cable must be routed +from the rooftop site to the NTP server and properly strain relieved. +

    +GPS Connection

    +The Palisade is equipped with dual (A & B) RS-422 serial interfaces +and a differential TTL PPS output. An RS-232 / RS-422 Interface Module +is supplied with the Palisade NTP Synchronization Kit. Palisade port +A must be connected to the NTP host server. Maximum antenna cable length +is 500 meters. See the pinouts table for detailed +connection Information. +

    Palisade's port B provides a TSIP (Trimble Standard +Interface Protocol) interface for diagnostics, configuration, and monitoring. +Port B and the PPS output are not currently used by the Palisade NTP reference +clock driver. +
     

    +
    -

    Note: If you are using Palisade 26664-00, you must set -fudge flag2 to 1 in your ntp.conf file. See the configuration section below. +

    +O/S Serial Port Configuration

    +The driver attempts to open the device /dev/palisadeu +where +u is the NTP refclock unit number as defined by the +LSB of the refclock address.  Valid refclock unit numbers are 0 - +3. +

    The user is expected to provide a symbolic link to an available serial +port device.  This is typically performed by a command such as: +

    ln -s /dev/ttyS0 /dev/palisade0
    +Windows NT does not support symbolic links to device files. COMx: +is used by the driver, based on the refclock unit number, where unit 1 +corresponds to COM1: and unit 3 corresponds to COM3:
      -

    -Installation

    -The Palisade receiver is delivered in a smart antenna form -factor, housing the GPS receiver, antenna and interface in a single unit, -and is designed for rooftop deployment. -

    A location with unobstructed view of the horizon is recommended. -Palisade is designed to be securely mounted atop standard 3/4 inch threaded -pipe. -

    The 12 conductor (dia. 10 mm)  power and I/O cable -must be routed from the rooftop site to the NTP server. -

    -Connection

    -The Palisade is equipped with dual (A & B) RS-422 serial -interfaces and a differential TTL PPS output. Port A must be connected -to the NTP time server. An RS-232 / RS-422 signal converter is supplied -with the Palisade NTP Synchronization Kit, to allow cable lengths up to -500 meters. -

    The following connections are required when connecting -Palisade with a host: +

    +NTP Configuration

    +Palisade NTP configuration file "ntp.conf" with event polling: +
    #------------------------------------------------------------------------------ +
    # The Primary reference +
    server 127.127.29.0 # Trimble Palisade GPS Refclock Unit #0 +
    peer terrapin.csc.ncsu.edu # internet server +
    # Drift file for expedient re-synchronization after downtime or +reboot. +
    driftfile /etc/ntp.drift +
    #------------------------------------------------------------------------------ +

    Configuration without event polling: +
    #------------------------------------------------------------------------------ +
    # The Primary reference +
    server 127.127.29.0 # Trimble Palisade GPS (Stratum 1). +
    # Set packet delay +
    fudge 127.127.29.0 time1 0.020 +
    # and set flag2 to turn off event polling. +
    fudge 127.127.29.0 flag2 1 +
    #------------------------------------------------------------------------------
      - - - +

    +Time Transfer and Polling

    +Time transfer to the NTP host is performed via the Palisade's comprehensive +time packet output. The time packets are output once per second, and whenever +an event timestamp is requested. +

    The driver requests an event time stamp at the end of each polling interval, +by pulsing the RTS (request to send) line on the serial port. The Palisade +GPS responds with a time stamped event packet. +

    Time stamps are reported by the Palisade with respect to UTC time. The +GPS receiver must download UTC offset information from GPS satellites. +After an initial UTC download, the receiver will always start with correct +UTC offset information. +
      +

    +Run NTP in Debugging Mode

    +The following procedure is recommended for installing and testing a Palisade +NTP driver: +
      +
    1. +Perform initial checkout procedures. Place the GPS receiver outdoors; with +clear view of the sky. Allow the receiver to obtain an UTC almanac.
    2. -
    +
  • +Verify presence of timing packets by observing the 1 Hz (PPS) led on the +interface module. It should flash once per second.
  • - +
  • +Connect Palisade's port A to the NTP host.
  • - +
  • +Configure NTP and the serial I/O port on the host system.
  • - +
  • +Initially use fudge flag2 in ntp.conf, +to disable event polling (see configuration).
  • - +
  • +Run NTP in debug mode (-d -d), to observe Palisade_receive events.
  • - - +
  • +The driver reports the tracking status of the +receiver. Make sure it is tracking several satellites.
  • - - +
  • +Remove fudge flag2 and restart ntpd in debug mode to observe palisade_receive +events.
  • - +
  • +If event polling fails, verify the connections and +that the host hardware supports RTS control.
  • + - +

    +Event Logging

    +System and Event log entries are generated by NTP to report significant +system events. Administrators should monitor the system log to observe +NTP error messages. Log entries generated by the Palisade NTP reference +clock driver will be of the form: +
    +
    Nov 14 16:16:21 terrapin ntpd[1127]: Palisade #0: message
    +
    - +

    +Fudge Factors

    - +
    +
    +time1 time
    -
    +
    +Specifies the time offset calibration factor, in seconds and fraction, +with default 0.0. If event capture is not used, time1 should be set to +20 milliseconds to correct serial line and operating system delays incurred +in capturing time stamps from the synchronous packets.
    - - +
    +stratum number
    - - +
    +Specifies the driver stratum, in decimal from 0 to 15, with default 0.
    - +
    +refid string
    - +
    +Specifies the driver reference identifier, GPS.
    + +
    +flag2 0 +| 1
    - +
    +When set to 1, driver does not use hardware event capture. The synchronous +packet output by the receiver at the beginning of each second is time stamped +by the driver. If triggering the event pulse fails, the driver falls back +to this mode automatically.
    + - +

    +DEFINEs

    +The following constants are defined in the driver source code. These defines +may be modified to improve performance or adapt to new operating systems. +
      +
    DescriptionHost   Palisade 
    Port A -
    DB-9
    -
    -
    DB-25
    -
     RS-232RS-422Palisade Pinout
    Receive Data  -
    2
    -
    -
    3
    -
    <--Green
    + + - + - + - + - + - - - + + - + + - + - + - + - - - + - + + - + + - + - + - + - - - + - + + - + + - + - + +
    LabelGreen / BlueDefinition8 (T-) & 10 (T+)Default Value
    Transmit Data DEVICE -
    3
    -
    The serial port device to be used by the driver -
    2
    -
    <--/dev/palisadeu
    N/C
    PRECISIONN/CAccuracy of time transfer 1 microsecond
    Request to SendCURRENT_UTC -
    7
    -
    -
    4
    -
    Valid GPS - UTC offset<--13
    Gray
    SPEED232Gray / WhiteHost RS-232 baud rate6 (R-) & 7 (R+)B9600
    Signal GroundTRMB_MINPOLL  -
    5
    -
    -
    7
    -
    Minimum polling interval<--5 (32 seconds)
    Black
    TRMB_MAXPOLLBlackMaximum interval between polls9 (GND)7 (128 seconds)
    + +

    +Data Format

    +Palisade port A can output two synchronous time packets. The NTP driver +can use either packet for synchronization. Packets are formatted as follows: +

    +Packet 8F-AD (Primary NTP Packet)

    +
    - + - + - + - + + - + + - + - + + + - + + + - + - + + - + + - + - + - + - + - + - + - + + + + + - + - + - + - + - + - + + + + - + + - + - + - + - + - + - + - + + - + + - + - + + + - + - + - + - + + - + + + + - + - + -
     Byte Item Type Meaning
     
    0 Sub-Packet ID BYTESubcode 0xAD
    Port B1 - 2Event Count INTEGER External event count recorded (0 = PPS)
     
    3 - 10 Fractional Second DOUBLE Time elapsed in current second (s)
    Receive Data 11 -
    2
    -
    Hour -
    3
    -
    BYTE<--Hour (0 - 23)
    12BrownMinuteBrown / YellowBYTE4 (T-) & 5 (T+)Minute (0 - 59)
    Transmit Data13 -
    3
    -
    Second -
    2
    -
    BYTESecond (0 - 59; 60 = leap)
    <--
    14VioletDayOrange/ VioletBYTE2 (R-) & 3 (R+)Date (1 - 31)
    Request to Send15 -
    7
    -
    Month -
    4
    -
    BYTE<--Month (1 - 12)
    N/C
    16 - 17N/CYear INTEGERYear (4 digit)
    Signal Ground18 -
    5
    -
    Receiver Status -
    7
    -
    BYTE<--Tracking Status
    Black
    19UTC FlagsBlackBYTE9 (GND)Leap Second Flags
    -

    Note: Driving the RS-422 inputs on the Palisade single -ended, i.e. using the Green and Gray connections, -
    does not work on all serial ports, and is deprecated. -Use of the Palisade NTP host adapter is recommended. -

    Pinouts for the Palisade NTP host adapter (Trimble PN -37070) DB-25 M connector are as follows: -
      -
      - - + - + - + - + - + - + - + - + +
    DB-25M20Conductor ReservedPalisadeBYTEDescriptionContains 0xFF
    21RedReserved1BYTEPowerContains 0xFF

    +
    +

    +Leap Second Flag Definition:

    +Bit 0:  (1) UTC Time is available +
    Bits 1 - 3: Undefined +
    Bit 4:  (1) Leap Scheduled: Leap second pending asserted by GPS +control segment. +
    Bit 5:  (1) Leap Pending: set 24 hours before, until beginning +of leap second. +
    Bit 6:  (1) GPS Leap Warning: 6 hours before until 6 hours after +leap event +
    Bit 7:  (1) Leap In Progress. Only set during the leap second. +

    +Tracking Status Flag Definitions:

    +
    + +
    - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + -
    CodeBlackMeaning9AccuracyGroundReceiver Mode
    90Black/WhiteReceiver is Navigating12+/- 1 usPPS -Self Survey
    10 1GreenStatic 1 Sat. Timing Mode 8+/- 1 usTransmit Port A (T-)1-D Timing
    11 2BrownApproximate Time420 - 50 msTransmit Port B (T-)Acquisition
    12 3GrayStartup7N/AReceive Port A (R+)Initialization
    134OrangeStartup3N/AReceive Port B (R+)Initialization
    215Orange/WhiteDilution of Position too High 115 ppmPPS +Self Survey
    226BlueStatic 1 Sat. Timing: Sat. not usable105 ppmTransmit Port A (T+)1-D Timing
    237YellowNo Satellites Usable5N/ATransmit Port B (T+)Self Survey
    248WhiteOnly 1 Satellite Usable620 - 50 msReceive Port A (R-)Self Survey
    259VioletOnly 2 Satellite Usable220 - 50 msReceive Port B (R-)Self Survey
    -

    The Palisade's secondary port, Port B, provides a TSIP -(Trimble Standard Interface Protocol), control and command interface for -diagnostics, configuration, and monitoring. -
    Port B and the PPS output are not currently used by the -Palisade NTP reference clock driver. -
      -

    -O/S Serial Port Configuration

    -The driver attempts to open the device /dev/palisadeuwhere -u -is the NTP refclock unit number as defined by the LSB of the refclock address.  -Valid refclock unit numbers are 0 - 3. -

    The user is expected to provide a symbolic link to an -available serial port device.  This is typically performed by a command -such as: -

    ln -s /dev/ttyS0 /dev/palisade0
    -Windows NT does not support symbolic links to device files. -COMx: is used by the driver, derived from the refclock unit number, -where unit 1 corresponds to COM1: and unit 3 corresponds to COM3: -

    -Time Transfer and Polling

    -Time transfer to the NTP host is performed via the Palisade's -comprehensive time packet output. This packet is output once per second, -and whenever an event timestamp is requested. -

    The driver requests an event time stamp at the end of -each polling interval, by pulsing the RTS (request to send) line on the -serial port. The Palisade receiver responds with a time stamped event packet. -

    Time stamps are reported by the Palisade with respect -to UTC time. -

    -Data Format

    - -


    Palisade port A can output two synchronous time packets. -The NTP driver can use either packet for synchronization. Packets are formatted -as follows: -
      -

    Packet 8F-AD (Primary NTP Packet) -
      - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +
    Byte10ItemOnly 3 Satellites UsableType20 - 50 msMeaningSelf Survey
    011Sub-Packet IDInvalid SolutionBYTEN/ASubcode 0xADError
    1 - 212Event CountDifferential Corrections INTEGERN/AExternal event count recorded -(0 = PPS)N/A
    3 - 1013Fractional SecondOverdetermined FixesDOUBLE+/- 100 nsTime elapsed in current secondTiming Steady State

    + +

    +Packet 8F-0B (Comprehensive Timing Packet)

    +
    - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + -
    11ByteHourItemBYTETypeHourMeaning
    120MinuteSub-Packet IDBYTEBYTEMinuteSubcode 0x0B
    131 - 2SecondEvent CountBYTEINTEGERSecond (0 - 59; 60 = leap)External event count recorded (0 = PPS)
    143 - 10DayUTC / GPS TOWBYTEDOUBLEDate (1 - 31)UTC / GPS time of week (seconds)
    1511MonthDateBYTEBYTEMonth (1 - 12)Day of Month
    15 - 1712YearMonthINTEGERBYTEYear (4 digit)Month of Event
    1813 - 14Receiver StatusYearBYTEINTTracking StatusYear of event
    1915UTC FlagsReceiver ModeBYTEBYTELeap Second FlagsReceiver operating dimensions:  +
    0: Horizontal (2D)  +
    1: Full Position (3D)  +
    2: Single Satellite (0D)  +
    3: Automatic (2D / 3D)  +
    4: DGPS reference  +
    5: Clock hold (2D)  +
    6: Over determined Clock
    2015 - 17ReservedUTC OffsetBYTEINTEGERContains 0xFFUTC Offset value (seconds)
    2118 - 25ReservedOscillator BiasBYTEDOUBLEContains 0xFFOscillator BIAS (meters)
    -
      -

    Leap Second Flag Definition: -
    Bit 0:  (1) UTC Time is available -
    Bits 1 - 3: Undefined -
    Bit 4:  (1) Leap Scheduled: Leap second pending -asserted by GPS control segment. -
    Bit 5:  (1) Leap Pending: set 24 hours before, until -beginning of leap second. -
    Bit 6:  (1) GPS Leap Warning: 6 hours before until -6 hours after leap event -
    Bit 7: (1) Leap In Progress. Only set during the leap -second. -
      -

    Tracking Status Flag Definitions: -
      - - + - - + - - + - + - + - - + - - + - + - + - - + - - + - + - + - - + - - + - + - + - - + - - + - + - + - - + - - + - + - + - - + - - + - + -
    026 - 33Receiver is Navigating
    Oscillator Drift Rate
    1DOUBLE1 Sat. Timing ModeOscillator Drift (meters / second)
    234 - 37Approximate Time (20 - 50 ms)
    Bias Uncertainty
    3SINGLEStartupOscillator bias uncertainty (meters)
    438 - 41Startup (N/A)
    Drift Uncertainty
    5SINGLEDilution of Position too High -(only applies during survey)Oscillator bias rate uncertainty (m / sec)
    642 - 491 Sat. Timing Mode: SV is not -usable
    Latitude
    7DOUBLENo Satellites UsableLatitude in radians
    850 - 57Only 1 Satellite Usable
    Longitude
    9DOUBLEOnly 2 Satellite UsableLongitude in radians
    1058 - 65Only 3 Satellites Usable
    Altitude
    11DOUBLEInvalid Solution (Serious Error -Cond.)Altitude above mean sea level, in meters
    1266 - 73Differential Corrections (N/A)
    Satellite ID
    13BYTEOverdetermined FixesSV Id No. of tracked satellites
    +

    +

    +Pinouts

    +The following connections are required when connecting +Palisade with a host:
      -

    Packet 8F-0B (Comprehensive Timing Packet)
      - +
    - + - + - + - - - - - + - + - + - + - + - + - + - - - - - + - + - + - + - - - + - + - - + - - + - + - + - + - + - + - + - - - - - + - + - + - + - + - + - + - - - - - + - + - + - + - - - + - + - - + - - + - + - + - + - + - + - + - - - - - + - + - + - + - + - + - + - + + + + + + + - + + + - + - + - + + + + + - + - + - + - - -
    ByteDescriptionItemHostTypeMeaning
    0Sub-Packet IDPalisade BYTESubcode 0x0B
    1 - 2Port AEvent CountDB-9INTEGERDB-25External event count recorded -(0 = PPS)
    3 - 10UTC / GPS TOWRS-232DOUBLERS-422UTC / GPS time of week (seconds)Palisade Pin
    11DateReceive Data BYTE2Day of Month
    3
    12<-->MonthGreenBYTEGreen / BlueMonth of Event8 (T-) & 10 (T+)
    13 - 14Request to SendYear7INT4Year of event
    15<-->Receiver ModeGrayBYTEGray / WhiteReceiver operating dimensions:  -
    0: Horizontal (2D)  -
    1: Full Position (3D)  -
    2: Single Satellite (0D)  -
    3: Automatic (2D / 3D)  -
    4: DGPS reference  -
    5: Clock hold (2D)  -
    6: Over determined Clock
    6 (R-) & 7 (R+)
    15 - 17Signal GroundUTC Offset5INTEGER7UTC Offset value (seconds)
    18 - 25<-->Oscillator BiasBlackDOUBLEBlackOscillator BIAS (meters)9 (GND)
    26 - 33Oscillator Drift RateDOUBLEOscillator Drift (meters / second)
    34 - 37Bias UncertaintySINGLEOscillator bias uncertainty -(meters)
    38 - 41Port BDrift UncertaintySINGLEOscillator bias rate uncertainty -(m / sec)
    42 - 49LatitudeDOUBLELatitude in radians
    50 - 57Receive Data Longitude2DOUBLE3Longitude in radians<-->BrownBrown / Yellow4 (T-) & 5 (T+)
    58 - 65Transmit Data3Altitude2DOUBLE<-->Altitude above mean sea level, -in metersVioletOrange/ Violet2 (R-) & 3 (R+)
    66 - 73Signal GroundSatellite ID5BYTE7SV Id No. of tracked satellites
    +<--> -

    +Black -

    -Configuration

    -A typical ntp.conf configuration -file for this driver and a Palisade with event polling: -
    #------------------------------------------------------------------------------ -
    # The Primary reference -
    server 127.127.29.0 # Trimble Palisade GPS (Stratum 1). -

    peer terrapin.csc.ncsu.edu # internet server -

    # Drift file for expedient re-synchronization after downtime or -reboot. -
    driftfile /etc/ntp.drift -
    #------------------------------------------------------------------------------ -

    A typical ntp.conf configuration -file for this driver and a Palisade without event polling: -

    #------------------------------------------------------------------------------ -
    # The Primary reference -
    server 127.127.29.0 # Trimble Palisade GPS (Stratum 1). -

    # Set packet delay -
    fudge 127.127.29.0 time1 0.020 -

    # and set flag2 to turn off event polling. -
    fudge 127.127.29.0 flag2 1 -

    # Drift file for expedient re-synchronization after downtime or -reboot. -
    driftfile /etc/ntp.drift -
    #------------------------------------------------------------------------------ -

    -Logging

    -Syslog entries generated by the palisade reference clock -will be of the form: -
    Nov 14 16:16:21 terrapin ntpd[1127]: Palisade #0: message
    - -

    -Debugging

    -The following procedure is recommended for installing and -testing a Palisade NTP driver: -
      -
    1. -Place the Palisade GPS receiver outdoors; with clear view -of the sky.
    2. +Black -
    3. -Allow the receiver 5 minutes to acquire satellite lock and -position.
    4. +9 (GND) + + -
    5. -Verify presence of timing packets by observing the 1 Hz (PPS) -led on the NTP interface. It should flash once per second.
    6. +
      Note: If driving the RS-422 inputs on the Palisade single ended, +i.e. using the Green and Gray connections only, does not work on all serial +ports. Use of the Palisade NTP Synchronization Interface Module is recommended.
      -
    7. -Connect Palisade port A to the NTP host.
    8. +
      The 12 pin connector pinout definition: +
      Face the round 12 pin connector at the end of the cable, with the notch +turned upwards. +
      Pin 1 is to the left of the notch. Pins 2 - 8 wrap around the bottom, +counterclockwise to pin 9 on the right of the notch. Pin 10 is just below +the notch. Pins 10 (top), 11 (bottom left) and 12 (bottom right) form a +triangle in the center of the connector.
      -
    9. -Configure NTP and the serial I/O port on the host system.
    10. +
      Pinouts for the Palisade NTP host adapter +(Trimble PN 37070) DB-25 M connector are as follows:
      -
    11. -Initially use fudge flag2 in ntp.conf, to disable -event polling (see configuration).
    12. +
      + + -
    13. -Run NTP in debug mode (-d -d), to observe Palisade_receive -events.
    14. + -
    15. -The driver reports the tracking status of the receiver. A -minumum of 4 sats. are required for self-survey to complete.
    16. + -
    17. -Remove fudge flag2 and restart ntpd in debug mode -to observe event polling receive events.
    18. - + + -

      - #DEFINEs

      -The following constants are defined and used by the driver. -These defines may be modified to improve performance or adapt to new operating -systems. -
        -
      DB-25MConductor PalisadeDescription
      - + + + - + - + - + + + - + - + - + - + - + + + - + + + - + - + - + - + - + + + - + + + - + - + - + - + - + + + -
      LabelRedDefinition1Default ValuePower
      DEVICEBlackThe serial port device to be -used by the driver.9/dev/palisadeuGround
      PRECISION9Estimate of the accuracy of -timestamps when using event poll.Black/White10 microseconds12PPS -
      CURRENT_UTC10 GreenValid GPS - UTC offset813Transmit Port A (T-)
      SPEED23211 Host RS-232 baud rateBrownB96004Transmit Port B (T-)
      TRMB_MINPOLL 12 GrayMinimum polling interval75 (32 seconds)Receive Port A (R+)
      TRMB_MAXPOLL13Maximum interval between pollsOrange7 (128 seconds)3Receive Port B (R+)
      -

      -Fudge Factors

      + +21 -
      -
      -time1 time
      +Orange/White -
      -Specifies the time offset calibration factor, in seconds -and fraction, with default 0.0.
      -
      +11 -When event capture is not being used, time1 should be -set to 20 milliseconds to correct serial line and operating system delays -incurred in capturing time stamps from the synchronous packets. +PPS + + -
      -
      - time2 time
      + +22 -
      -Not currently used by this driver.
      +Blue -
      -stratum number
      +10 -
      -Specifies the driver stratum, in decimal from 0 to 15, with -default 0.
      +Transmit Port A (T+) + -
      -refid string
      + +23 -
      -Specifies the driver reference identifier, GPS.
      +Yellow -
      -flag1 0 | 1
      +5 -
      -Not currently used by this driver.
      +Transmit Port B (T+) + -
      -flag2 0 | 1
      + +24 -
      -When set to 1, driver does not use hardware event polling. -Instead, the synchronous packets output at the start of each second by -the Palisade receiver are used. If the ioctl() call triggering the event -capture fails, the driver falls back to this mode automatically.
      +White -
      -flag3 0 | 1
      +6 -
      -Not currently used by this driver.
      +Receive Port A (R-) + -
      - flag4 0 | 1
      + +25 -
      -Not currently used by this driver.
      -
      +Violet + +2 + +Receive Port B (R-) + +
      -

      -Additional Information

      -Reference Clock Drivers -
      Trimble Navigation -Ltd.


      -
      -Sven-Thorsten -Dietrich
      - -


      (last updated May 13, 1999) +

      Questions or Comments: +
      Sven Dietrich +
      Trimble Navigation Ltd. +

      (last updated July 29, 1999)
        diff --git a/html/hints/winnt b/html/hints/winnt index 856653c10..6fd7c84aa 100644 --- a/html/hints/winnt +++ b/html/hints/winnt @@ -1,6 +1,29 @@ ------------- INTRODUCTION: ------------- +Last revision 27 July 1999 Version 4.0.95. + +This version compiles under WINNT with Visual C 6.0. + +Greg Brackley and Sven Dietrich + +Significant changes: +-Visual Studio v6.0 support +-Winsock 2.0 support +-Use of I/O completion ports for sockets and comm port I/O +-Removed the use of multimedia timers (from ntpd, others need removing) +-Use of waitable timers (with user mode APC) and performance counters to fake getting a better time +-Trimble Palisade NTP Reference Clock support +-General cleanup, prototyping of functions +-Moved receiver buffer code to a separate module (removed unused members from the recvbuff struct) +-Moved io signal code to a separate module + +Compiling Instructions: +1. Requires Perl to be installed, and the Perl environment variable to be set correctly +2. Open the .\ports\winnt\ntp.dsw +3. Batch build of all debug projects compile + + Last revision: 20-Oct-1996 This version corrects problems with building the XNTP diff --git a/html/ntpd.htm b/html/ntpd.htm index f4ff585b9..9c3576226 100644 --- a/html/ntpd.htm +++ b/html/ntpd.htm @@ -1,225 +1,157 @@ - - - - - ntpd - Network Time Protocol (NTP) daemon - - - - -

      -ntpd - Network Time Protocol (NTP) daemon

      - -
      -

      -Synopsis

      + +<TT>ntpd</TT> - Network Time Protocol (NTP) daemon +

      +ntpd - Network Time Protocol (NTP) daemon +


      + +

      Synopsis

      + ntpd [ -aAbdm ] [ -c conffile ] [ -f driftfile ] [ -k -keyfile ] [ -l logfile ] [ -p pidfile ] [ -r broadcastdelay -] [ -s statsdir ] [ -t key ] [ -v variable ] [ -V +keyfile ] [ -l logfile ] [ -p pidfile ] [ -r +broadcastdelay ] [ -s statsdir ] [ -t key ] [ -v +variable ] [ -V variable ] -

      -Description

      + +

      Description

      + ntpd is an operating system daemon which sets and maintains the system time-of-day in synchronism with Internet standard time servers. ntpd is a complete implementation of the Network Time Protocol -(NTP) version 4, but also retains compatibility with version 3, as defined -by RFC-1305, and version 1 and 2, as defined by RFC-1059 and RFC-1119, -respectively. ntpd does most computations in 64-bit floating point -arithmetic and does relatively clumsy 64-bit fixed point operations only -when necessary to preserve the unltimate precision, about 232 picoseconds. -While the ultimate precision, is not achievable with ordinary workstations -and networks of today, it may be required with future nanosecond CPU clocks -and gigabit LANs. +(NTP) version 4, but also retains compatibility with version 3, as +defined by RFC-1305, and version 1 and 2, as defined by RFC-1059 and +RFC-1119, respectively. ntpd does most computations in 64-bit +floating point arithmetic and does relatively clumsy 64-bit fixed point +operations only when necessary to preserve the unltimate precision, +about 232 picoseconds. While the ultimate precision, is not achievable +with ordinary workstations and networks of today, it may be required +with future nanosecond CPU clocks and gigabit LANs.

      The daemon can operate in any of several modes, including symmetric -active/passive, client/server broadcast/multicast and manycast. A broadcast/multicast -or manycast client can discover remote servers, compute server-client propagation -delay correction factors and configure itself automatically. This makes -it possible to deploy a fleet of workstations without specifying configuration -details specific to the local environment. +active/passive, client/server broadcast/multicast and manycast. A +broadcast/multicast or manycast client can discover remote servers, +compute server-client propagation delay correction factors and configure +itself automatically. This makes it possible to deploy a fleet of +workstations without specifying configuration details specific to the +local environment.

      Ordinarily, ntpd reads the ntp.conf configuration file at startup time in order to determine the synchronization sources and operating modes. It is also possible to specify a working, although limited, configuration entirely on the command line, obviating the need for a configuration file. This may be particularly appropriate when the -local host is to be configured as a broadcast/multicast client or manycast -client, with all peers being determined by listening to broadcasts at run -time. - -

      Various internal ntpd variables can be displayed and configuration -options altered while the daemon is running using the ntpq -and ntpdc utility programs. - -

      When ntpd starts it looks at the value of umask, and -if it's zero ntpd will set the umask to 022. -

      -Command Line Options

      - -
      -
      --a
      - -
      -Enable authentication mode (default).
      +local host is to be configured as a broadcast/multicast client or +manycast client, with all peers being determined by listening to +broadcasts at run time. -
      -
      +

      Various internal ntpd variables can be displayed and +configuration options altered while the daemon is running using the +ntpq and ntpdc utility programs. -

      --A
      +

      When ntpd starts it looks at the value of umask, +and if it's zero ntpd will set the umask to +022. -

      -Disable authentication mode.
      +

      Command Line Options

      -
      -
      - -
      --b
      - -
      -Synchronize using NTP broadcast messages.
      +
      -
      -
      +
      -a
      +
      Enable authentication mode (default).
      -
      --c conffile
      +
      -A
      +
      Disable authentication mode.
      -
      -Specify the name and path of the configuration file.
      +
      -b
      +
      Synchronize using NTP broadcast messages.
      -
      -
      +
      -c conffile
      +
      Specify the name and path of the configuration file.
      -
      --d
      +
      -d
      +
      Specify debugging mode. This flag may occur multiple times, with +each occurrence indicating greater detail of display.
      -
      -Specify debugging mode. This flag may occur multiple times, with each occurrence -indicating greater detail of display.
      +
      -D level
      +
      Specify debugging level directly.
      -
      -
      +
      -f driftfile
      +
      Specify the name and path of the drift file.
      -
      --f driftfile
      +
      -g
      +
      Normally, the daemon exits if the offset exceeds a 1000-s sanity +limit. This option overrides this limit and allows the time to be set to +any value without restriction.
      -
      -Specify the name and path of the drift file.
      +
      -k keyfile
      +
      Specify the name and path of the file containing the NTP +authentication keys.
      -
      -
      +
      -l logfile
      +
      Specify the name and path of the log file. The default is the system +log facility.
      -
      --k keyfile
      +
      -m
      +
      Synchronize using NTP multicast messages on the IP multicast group +address 224.0.1.1 (requires multicast kernel).
      -
      -Specify the name and path of the file containing the NTP authentication -keys.
      +
      -p pidfile
      +
      Specify the name and path to record the daemon's process ID.
      -
      -
      +
      -P
      +
      Override the priority limit set by the operating system. Not +recommended for sissies.
      -
      --l logfile
      +
      -r broadcastdelay
      +
      Specify the default propagation delay from the broadcast/multicast +server and this computer. This is necessary only if the delay cannot be +computed automatically by the protocol.
      -
      -Specify the name and path of the log file. The default is the system log +
      -s statsdir
      +
      Specify the directory path for files created by the statistics facility.
      -
      -
      - -
      --m
      - -
      -Synchronize using NTP multicast messages on the IP multicast group address -224.0.1.1 (requires multicast kernel).
      - -
      -
      - -
      --p pidfile
      - -
      -Specify the name and path to record the daemon's process ID.
      - -
      -
      +
      -t key
      +
      Add a key number to the trusted key list.
      -
      --r broadcastdelay
      +
      -v variable
      +
      -V variable
      +
      Add a system variable listed by default.
      -
      -Specify the default propagation delay from the broadcast/multicast server -and this computer. This is necessary only if the delay cannot be computed -automatically by the protocol.
      +
      -x
      +
      Ordinarily, if the time is to be adjusted more than 128 ms, it is +stepped, not gradually slewed. This option forces the time to be slewed +in all cases. Note: Since the slew rate is limited to 0.5 ms/s, each +second of adjustment requires an amortization interval of 2000 s. Thus, +an adjustment of many seconds can take hours or days to amortize.
      -
      -
      - -
      --s statsdir
      - -
      -Specify the directory path for files created by the statistics facility.
      - -
      -
      - -
      --t key
      - -
      -Add a key number to the trusted key list.
      - -
      -
      - -
      --v variable
      - -
      -Add a system variable.
      - -
      -
      - -
      --V variable
      - -
      -Add a system variable listed by default.
      -

      -The Configuration File

      +

      The Configuration File

      + The ntpd configuration file is read at initial startup in order -to specify the synchronization sources, modes and other related information. -Usually, it is installed in the /etc directory, but could be installed -elsewhere (see the -c conffile command line option). The -file format is similar to other Unix configuration files - comments begin -with a # character and extend to the end of the line; blank lines -are ignored. Configuration commands consist of an initial keyword followed -by a list of arguments, some of which may be optional, separated by whitespace. -Commands may not be continued over multiple lines. Arguments may be host -names, host addresses written in numeric, dotted-quad form, integers, floating -point numbers (when specifying times in seconds) and text strings. Optional -arguments are delimited by [ ] in the following descriptions, -while alternatives are separated by |. The notation [ ... -] means an optional, indefinite repetition of the last item before -the [ ... ]. +to specify the synchronization sources, modes and other related +information. Usually, it is installed in the /etc directory, +but could be installed elsewhere (see the -c conffile +command line option). The file format is similar to other Unix +configuration files - comments begin with a # character and +extend to the end of the line; blank lines are ignored. Configuration +commands consist of an initial keyword followed by a list of arguments, +some of which may be optional, separated by whitespace. Commands may not +be continued over multiple lines. Arguments may be host names, host +addresses written in numeric, dotted-quad form, integers, floating +point numbers (when specifying times in seconds) and text strings. +Optional arguments are delimited by [ ] in the following +descriptions, while alternatives are separated by |. The +notation [ ... ] means an optional, indefinite repetition of +the last item before the [ ... ].

      See the following pages for configuration and control options. While -there is a rich set of options available, the only required option is one -or more server, peer, broadcast or manycastclient -commands described in the Configuration Options page. The Notes -on Configuring NTP and Setting up a NTP Subnet page contains an extended -discussion of these options. +there is a rich set of options available, the only required option is +one or more server, peer, broadcast or +manycastclient commands described in the Configuration Options +page. The Notes on Configuring NTP and Setting up a +NTP Subnet page contains an extended discussion of these options.

      Configuration Options
      Authentication Options @@ -227,21 +159,21 @@ discussion of these options.
      Access Control Options
      Reference Clock Options
      Miscellaneous Options -

      -Files

      + +

      Files

      + /etc/ntp.conf - the default name of the configuration file
      /etc/ntp.drift - the default name of the drift file
      /etc/ntp.keys - the default name of the key file -

      -Bugs

      -ntpd has gotten rather fat. While not huge, it has gotten larger -than might be desireable for an elevated-priority daemon running on a workstation, -particularly since many of the fancy features which consume the space were -designed more with a busy primary server, rather than a high stratum workstation, -in mind.  -
      -
      -David L. Mills (mills@udel.edu)
      - - - + +

      Bugs

      + +ntpd has gotten rather fat. While not huge, it has gotten +larger than might be desireable for an elevated-priority daemon running +on a workstation, particularly since many of the fancy features which +consume the space were designed more with a busy primary server, rather +than a high stratum workstation, in mind. + +
      David L. Mills <mills@udel.edu> +
      diff --git a/html/refclock.htm b/html/refclock.htm index f3462103e..00b15f401 100644 --- a/html/refclock.htm +++ b/html/refclock.htm @@ -99,7 +99,7 @@ Receiver (MSF_ARCRON)
      Type 28 Shared memory driver (SHM) -
      Type 29 Trimble Navigation Palisade GPS (GPS_PALISADE) +
      Type 29 Trimble Navigation Palisade GPS (GPS_PALISADE)
      Type 30 Motorola UT Oncore GPS (GPS_ONCORE)
      Type 31 Rockwell Jupiter GPS (GPS_JUPITER) diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 1c2d37dcf..0a6e7d27c 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -270,7 +270,7 @@ create_sockets( if ((ifap->ifa_flags & IFF_UP) == 0) continue; - if (ifa->ifa_flags & IFF_LOOPBACK) + if (ifap->ifa_flags & IFF_LOOPBACK) { sin = (struct sockaddr_in *)ifap->ifa_addr; if (ntohl(sin->sin_addr.s_addr) != 0x7f000001)