]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
autogen upgrade
authorHarlan Stenn <stenn@ntp.org>
Thu, 3 Aug 2006 00:21:23 +0000 (20:21 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 3 Aug 2006 00:21:23 +0000 (20:21 -0400)
bk: 44d14183IKLZJ-DLVcZiXH-THigh5A

23 files changed:
ntpd/ntpd-opts.c
ntpd/ntpd-opts.h
ntpd/ntpd-opts.texi
ntpd/ntpd.1
ntpd/ntpdsim-opts.c
ntpd/ntpdsim-opts.h
ntpd/ntpdsim-opts.texi
ntpd/ntpdsim.1
ntpdc/ntpdc-opts.c
ntpdc/ntpdc-opts.h
ntpdc/ntpdc-opts.texi
ntpdc/ntpdc.1
ntpq/ntpq-opts.c
ntpq/ntpq-opts.h
ntpq/ntpq-opts.texi
ntpq/ntpq.1
sntp/sntp-opts.c
sntp/sntp-opts.h
sntp/sntp-opts.texi
util/ntp-keygen-opts.c
util/ntp-keygen-opts.h
util/ntp-keygen-opts.texi
util/ntp-keygen.1

index 98df11c7d1f1b8b74c8257162b19ffda9314c927..2321334854239453384d15caf7ab82287f9451df 100644 (file)
@@ -2,11 +2,29 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpd-opts.c)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:47 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:41 PM EDT
  *  From the definitions    ntpd-opts.def
  *  and the template file   options
  */
 
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This source file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpd author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpd copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
+
+
+
 #define OPTION_CODE_COMPILE 1
 #include "ntpd-opts.h"
 
@@ -17,7 +35,7 @@ tSCC zCopyright[] =
        "ntpd copyright (c) 1970-2006 ntp.org, all rights reserved";
 tSCC zCopyrightNotice[] =
        
-/* extracted from /backroom/ntp-dev-hms/include/copyright.def near line 8 */
+/* extracted from ../include/copyright.def near line 8 */
 "see html/copyright.html";
 extern tUsageProc optionUsage;
 
@@ -343,8 +361,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-/* extracted from optmain.tpl near line 586 */
-
 #if defined(TEST_NTPD_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -795,12 +811,10 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPD";
 tSCC   zUsageTitle[] =
-"ntpd - NTP daemon program - Ver. 4.2.3p12\n\
+"ntpd - NTP daemon program - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
-       "$HOME",
-       ".",
        "$HOME",
        ".",
        NULL };
@@ -809,7 +823,7 @@ tSCC   zBugsAddr[]    = "http://bugs.ntp.isc.org, bugs@ntp.org";
 #define zExplain NULL
 tSCC    zDetail[]     = "\n\n";
 tSCC    zFullVersion[] = NTPD_FULL_VERSION;
-/* extracted from optcode near line 321 */
+/* extracted from optcode near line 368 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -893,14 +907,18 @@ main( int argc, char** argv )
     return res;
 }
 #endif  /* defined TEST_NTPD_OPTS */
-/* extracted from optcode near line 418 */
+/* extracted from optcode near line 465 */
 
 #if ENABLE_NLS
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
+static char* AO_gettext( const char* pz );
+static void  coerce_it(void** s);
+
 static char*
 AO_gettext( const char* pz )
 {
@@ -918,6 +936,10 @@ AO_gettext( const char* pz )
     return pzRes;
 }
 
+static void coerce_it(void** s) { *s = AO_gettext(*s); }
+#define COERSION(_f) \
+  coerce_it((void*)&(ntpdOptions._f))
+
 /*
  *  This invokes the translation code (e.g. gettext(3)).
  */
@@ -960,12 +982,12 @@ translate_option_strings( void )
             pOD++;
         }
     }
-    ntpdOptions.pzCopyright   = AO_gettext(ntpdOptions.pzCopyright);
-    ntpdOptions.pzCopyNotice  = AO_gettext(ntpdOptions.pzCopyNotice);
-    ntpdOptions.pzFullVersion = AO_gettext(ntpdOptions.pzFullVersion);
-    ntpdOptions.pzUsageTitle  = AO_gettext(ntpdOptions.pzUsageTitle);
-    ntpdOptions.pzExplain     = AO_gettext(ntpdOptions.pzExplain);
-    ntpdOptions.pzDetail      = AO_gettext(ntpdOptions.pzDetail);
+    COERSION(pzCopyright);
+    COERSION(pzCopyNotice);
+    COERSION(pzFullVersion);
+    COERSION(pzUsageTitle);
+    COERSION(pzExplain);
+    COERSION(pzDetail);
 }
 
 #endif /* ENABLE_NLS */
index b415e3d0668fac91abee73340e7d76a68594a94d..6b88e7e5494b0c6c5c598f763509b25171a08771 100644 (file)
@@ -2,10 +2,26 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpd-opts.h)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:46 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:40 PM EDT
  *  From the definitions    ntpd-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This header file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpd author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpd copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
 /*
  *  This file contains the programmatic interface to the Automated
  *  Options generated for the ntpd program.
  */
 #ifndef AUTOOPTS_NTPD_OPTS_H_GUARD
 #define AUTOOPTS_NTPD_OPTS_H_GUARD
-
-/*
- * ntpd copyright 1970-2006 ntp.org - all rights reserved
- *
- * see html/copyright.html
- */
 #include "config.h"
 #include <autoopts/options.h>
 
@@ -34,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -76,8 +87,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    33
-#define NTPD_VERSION       "4.2.3p12"
-#define NTPD_FULL_VERSION  "ntpd - NTP daemon program - Ver. 4.2.3p12"
+#define NTPD_VERSION       "4.2.3p23"
+#define NTPD_FULL_VERSION  "ntpd - NTP daemon program - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -155,7 +166,7 @@ typedef enum {
                 ntpdOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*ntpdOptions.pUsageProc)( &ntpdOptions, c )
-/* extracted from opthead near line 289 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index 660382a9cab374f251a027c3c98614a9e0789e1f..15bf0ad185a241b788e5968a3a9539832f190f89 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (ntpd-opts.texi)
 # 
-# It has been AutoGen-ed  Tuesday July 25, 2006 at 05:15:21 AM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:43 PM EDT
 # From the definitions    ntpd-opts.def
 # and the template file   aginfo.tpl
 @end ignore
index be3826a58bda8b6ea9cbb1be398ae5cadd384155..3c38bb8966c6a2b54d5075671885389e3d9ffbcd 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPD 1 2006-06-27 "" "Programmer's Manual"
+.TH NTPD 1 2006-08-02 "( 4.2.3p23)" "Programmer's Manual"
 .\"  DO NOT EDIT THIS FILE   (ntpd.1)
 .\"  
-.\"  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:36:08 PM EDT
+.\"  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:42 PM EDT
 .\"  From the definitions    ntpd-opts.def
 .\"  and the template file   agman1.tpl
 .\"
@@ -10,7 +10,7 @@ ntpd \- NTP daemon program
 .SH SYNOPSIS
 .B ntpd
 .\" Mixture of short (flag) options and long options
-.RB [ -\fIflag\fP " [\fIvalue\fP]]... [" --\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
+.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
 .PP
 All arguments must be options.
 .SH "DESCRIPTION"
@@ -18,21 +18,21 @@ This manual page documents, briefly, the \fBntpd\fP command.
 
 .SH OPTIONS
 .TP
-.BR -4 ", " --ipv4
+.BR \-4 ", " \--ipv4
 Force IPv4 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv4 namespace.
 .TP
-.BR -6 ", " --ipv6
+.BR \-6 ", " \--ipv6
 Force IPv6 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv6 namespace.
 .TP
-.BR -a ", " --authreq
+.BR \-a ", " \--authreq
 Require crypto authentication.
 This option must not appear in combination with any of the following options:
 authnoreq.
@@ -41,7 +41,7 @@ Require cryptographic authentication for broadcast client,
 multicast client and symmetric passive associations.
 This is the default.
 .TP
-.BR -A ", " --authnoreq
+.BR \-A ", " \--authnoreq
 Do not require crypto authentication.
 This option must not appear in combination with any of the following options:
 authreq.
@@ -50,32 +50,32 @@ Do not require cryptographic authentication for broadcast client,
 multicast client and symmetric passive associations.
 This is almost never a good idea.
 .TP
-.BR -b ", " --bcastsync
+.BR \-b ", " \--bcastsync
 Allow us to sync to broadcast servers.
 .sp
 
 .TP
-.BR -c " \fIstring\fP, " --configfile "=" \fIstring\fP
+.BR \-c " \fIstring\fP, " \--configfile "=" \fIstring\fP
 configuration file name.
 .sp
 The name and path of the configuration file,
 /etc/ntp.conf
 by default.
 .TP
-.BR -d ", " --debug-level
+.BR \-d ", " \--debug-level
 Increase output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Increase the debugging message output level.
 .TP
-.BR -D " \fIstring\fP, " --set-debug-level "=" \fIstring\fP
+.BR \-D " \fIstring\fP, " \--set-debug-level "=" \fIstring\fP
 Set the output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Set the output debugging level.  Can be supplied multiple times,
 but each overrides the previous value(s).
 .TP
-.BR -f " \fIstring\fP, " --driftfile "=" \fIstring\fP
+.BR \-f " \fIstring\fP, " \--driftfile "=" \fIstring\fP
 frequency drift file name.
 .sp
 The name and path of the frequency file,
@@ -87,7 +87,7 @@ configuration specification in the
 /etc/ntp.conf
 file.
 .TP
-.BR -g ", " --panicgate
+.BR \-g ", " \--panicgate
 Allow the first adjustment to be Big.
 .sp
 Normally,
@@ -103,7 +103,7 @@ See the
 tinker
 configuration file directive for other options.
 .TP
-.BR -i " \fIstring\fP, " --jaildir "=" \fIstring\fP
+.BR \-i " \fIstring\fP, " \--jaildir "=" \fIstring\fP
 Jail directory.
 .sp
 Chroot the server to the directory
@@ -114,13 +114,13 @@ You may need to also specify a
 -u
 option.
 .TP
-.BR -I " \fIiface\fP, " --interface "=" \fIiface\fP
+.BR \-I " \fIiface\fP, " \--interface "=" \fIiface\fP
 Listen on interface.
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -k " \fIstring\fP, " --keyfile "=" \fIstring\fP
+.BR \-k " \fIstring\fP, " \--keyfile "=" \fIstring\fP
 path to symmetric keys.
 .sp
 Specify the name and path of the symmetric key file.
@@ -130,7 +130,7 @@ This is the same operation as the
 keys keyfile
 configuration file directive.
 .TP
-.BR -l " \fIstring\fP, " --logfile "=" \fIstring\fP
+.BR \-l " \fIstring\fP, " \--logfile "=" \fIstring\fP
 path to the log file.
 .sp
 Specify the name and path of the log file.
@@ -139,24 +139,24 @@ This is the same operation as the
 logfile logfile
 configuration file directive.
 .TP
-.BR -L ", " --novirtualips
+.BR \-L ", " \--novirtualips
 Do not listen to virtual IPs.
 .sp
 Do not listen to virtual IPs. The default is to listen.
 .TP
-.BR -n ", " --nofork
+.BR \-n ", " \--nofork
 Do not fork.
 .sp
 
 .TP
-.BR -N ", " --nice
+.BR \-N ", " \--nice
 Run at high priority.
 .sp
 To the extent permitted by the operating system, run
 ntpd
 at the highest priority.
 .TP
-.BR -p " \fIstring\fP, " --pidfile "=" \fIstring\fP
+.BR \-p " \fIstring\fP, " \--pidfile "=" \fIstring\fP
 path to the PID file.
 .sp
 Specify the name and path of the file used to record
@@ -166,7 +166,7 @@ This is the same operation as the
 pidfile pidfile
 configuration file directive.
 .TP
-.BR -P " \fInumber\fP, " --priority "=" \fInumber\fP
+.BR \-P " \fInumber\fP, " \--priority "=" \fInumber\fP
 Process priority.
 This option takes an integer number as its argument.
 .sp
@@ -176,7 +176,7 @@ at the specified
 sched_setscheduler(SCHED_FIFO)
 priority.
 .TP
-.BR -q ", " --quit
+.BR \-q ", " \--quit
 Set the time and quit.
 .sp
 ntpd
@@ -190,12 +190,12 @@ and
 options can be used with this option.
 Note: The kernel time discipline is disabled with this option.
 .TP
-.BR -r " \fIstring\fP, " --propagationdelay "=" \fIstring\fP
+.BR \-r " \fIstring\fP, " \--propagationdelay "=" \fIstring\fP
 Broadcast/propagation delay.
 .sp
 Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol.
 .TP
-.BR -U " \fInumber\fP, " --updateinterval "=" \fInumber\fP
+.BR \-U " \fInumber\fP, " \--updateinterval "=" \fInumber\fP
 interval in seconds between scans for new or dropped interfaces.
 This option takes an integer number as its argument.
 .sp
@@ -204,7 +204,7 @@ For systems with routing socket support the scans will be performed shortly afte
 has been detected by the system.
 Use 0 to disable scanning. 60 seconds is the minimum time between scans.
 .TP
-.BR -s " \fIstring\fP, " --statsdir "=" \fIstring\fP
+.BR \-s " \fIstring\fP, " \--statsdir "=" \fIstring\fP
 Statistics file location.
 .sp
 Specify the directory path for files created by the statistics facility.
@@ -212,13 +212,13 @@ This is the same operation as the
 statsdir statsdir
 configuration file directive.
 .TP
-.BR -t " \fItkey\fP, " --trustedkey "=" \fItkey\fP
+.BR \-t " \fItkey\fP, " \--trustedkey "=" \fItkey\fP
 Trusted key number.
 This option may appear an unlimited number of times.
 .sp
 Add a key number to the trusted key list.
 .TP
-.BR -u " \fIstring\fP, " --user "=" \fIstring\fP
+.BR \-u " \fIstring\fP, " \--user "=" \fIstring\fP
 Run as userid (or userid:groupid).
 .sp
 Specify a user, and optionally a group, to switch to.
@@ -229,19 +229,19 @@ Currently, this option is supported under NetBSD (configure with
 --enable-linuxcaps
 ).
 .TP
-.BR -v " \fInvar\fP, " --var "=" \fInvar\fP
+.BR \-v " \fInvar\fP, " \--var "=" \fInvar\fP
 make ARG an ntp variable (RW).
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -V " \fIndvar\fP, " --dvar "=" \fIndvar\fP
+.BR \-V " \fIndvar\fP, " \--dvar "=" \fIndvar\fP
 make ARG an ntp variable (RW|DEF).
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -x " \fIstring\fP, " --slew "=" \fIstring\fP
+.BR \-x " \fIstring\fP, " \--slew "=" \fIstring\fP
 Slew up to 600 seconds.
 .sp
 Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold.
@@ -268,7 +268,7 @@ Extended usage information passed thru pager.
 Save the option state to \fIrcfile\fP.  The default is the \fIlast\fP
 configuration file listed in the \fBOPTION PRESETS\fP section, below.
 .TP
-.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " --no-load-opts"
+.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " \--no-load-opts"
 Load options from \fIrcfile\fP.
 The \fIno-load-opts\fP form will disable the loading
 of earlier RC/INI files.  \fI--no-load-opts\fP is handled early,
@@ -288,7 +288,7 @@ environment variables named:
 .aj
 The environmental presets take precedence (are processed later than)
 the configuration files.
-The \fIhomerc\fP files are "\fI$HOME\fP", "\fI.\fP", "\fI$HOME\fP", and "\fI.\fP".
+The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
 If any of these are directories, then the file \fI.ntprc\fP
 is searched for within those directories.
 .SH AUTHOR
index b6f220e9f3209197b8e182b80c8d6a7505eb96b2..e25707105ecfc18b048737cea03db19c88927e7f 100644 (file)
@@ -2,11 +2,29 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpdsim-opts.c)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:49 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:46 PM EDT
  *  From the definitions    ntpdsim-opts.def
  *  and the template file   options
  */
 
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This source file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpdsim author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpdsim copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
+
+
+
 #define OPTION_CODE_COMPILE 1
 #include "ntpdsim-opts.h"
 
@@ -17,7 +35,7 @@ tSCC zCopyright[] =
        "ntpdsim copyright (c) 1970-2006 ntp.org, all rights reserved";
 tSCC zCopyrightNotice[] =
        
-/* extracted from /backroom/ntp-dev-hms/include/copyright.def near line 8 */
+/* extracted from ../include/copyright.def near line 8 */
 "see html/copyright.html";
 extern tUsageProc optionUsage;
 
@@ -433,8 +451,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-/* extracted from optmain.tpl near line 586 */
-
 #if defined(TEST_NTPDSIM_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -993,12 +1009,10 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPDSIM";
 tSCC   zUsageTitle[] =
-"ntpdsim - NTP daemon simulation program - Ver. 4.2.3p12\n\
+"ntpdsim - NTP daemon simulation program - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
-       "$HOME",
-       ".",
        "$HOME",
        ".",
        NULL };
@@ -1007,7 +1021,7 @@ tSCC   zBugsAddr[]    = "http://bugs.ntp.isc.org, bugs@ntp.org";
 #define zExplain NULL
 tSCC    zDetail[]     = "\n\n";
 tSCC    zFullVersion[] = NTPDSIM_FULL_VERSION;
-/* extracted from optcode near line 321 */
+/* extracted from optcode near line 368 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -1091,14 +1105,18 @@ main( int argc, char** argv )
     return res;
 }
 #endif  /* defined TEST_NTPDSIM_OPTS */
-/* extracted from optcode near line 418 */
+/* extracted from optcode near line 465 */
 
 #if ENABLE_NLS
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
+static char* AO_gettext( const char* pz );
+static void  coerce_it(void** s);
+
 static char*
 AO_gettext( const char* pz )
 {
@@ -1116,6 +1134,10 @@ AO_gettext( const char* pz )
     return pzRes;
 }
 
+static void coerce_it(void** s) { *s = AO_gettext(*s); }
+#define COERSION(_f) \
+  coerce_it((void*)&(ntpdsimOptions._f))
+
 /*
  *  This invokes the translation code (e.g. gettext(3)).
  */
@@ -1158,12 +1180,12 @@ translate_option_strings( void )
             pOD++;
         }
     }
-    ntpdsimOptions.pzCopyright   = AO_gettext(ntpdsimOptions.pzCopyright);
-    ntpdsimOptions.pzCopyNotice  = AO_gettext(ntpdsimOptions.pzCopyNotice);
-    ntpdsimOptions.pzFullVersion = AO_gettext(ntpdsimOptions.pzFullVersion);
-    ntpdsimOptions.pzUsageTitle  = AO_gettext(ntpdsimOptions.pzUsageTitle);
-    ntpdsimOptions.pzExplain     = AO_gettext(ntpdsimOptions.pzExplain);
-    ntpdsimOptions.pzDetail      = AO_gettext(ntpdsimOptions.pzDetail);
+    COERSION(pzCopyright);
+    COERSION(pzCopyNotice);
+    COERSION(pzFullVersion);
+    COERSION(pzUsageTitle);
+    COERSION(pzExplain);
+    COERSION(pzDetail);
 }
 
 #endif /* ENABLE_NLS */
index e179f5b445d263cd568ef38f6d9d0d352287c89a..958fd56305bc37bdd7489619f3a199ca34f0308f 100644 (file)
@@ -2,10 +2,26 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpdsim-opts.h)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:48 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:45 PM EDT
  *  From the definitions    ntpdsim-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This header file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpdsim author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpdsim copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
 /*
  *  This file contains the programmatic interface to the Automated
  *  Options generated for the ntpdsim program.
  */
 #ifndef AUTOOPTS_NTPDSIM_OPTS_H_GUARD
 #define AUTOOPTS_NTPDSIM_OPTS_H_GUARD
-
-/*
- * ntpdsim copyright 1970-2006 ntp.org - all rights reserved
- *
- * see html/copyright.html
- */
 #include "config.h"
 #include <autoopts/options.h>
 
@@ -34,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -85,8 +96,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    42
-#define NTPDSIM_VERSION       "4.2.3p12"
-#define NTPDSIM_FULL_VERSION  "ntpdsim - NTP daemon simulation program - Ver. 4.2.3p12"
+#define NTPDSIM_VERSION       "4.2.3p23"
+#define NTPDSIM_FULL_VERSION  "ntpdsim - NTP daemon simulation program - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -173,7 +184,7 @@ typedef enum {
                 ntpdsimOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*ntpdsimOptions.pUsageProc)( &ntpdsimOptions, c )
-/* extracted from opthead near line 289 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index 27de556ffeeabb057276a6282a58de2da2c31cf1..4dffa557e66321bb7d8654456d70daceae96a238 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (ntpdsim-opts.texi)
 # 
-# It has been AutoGen-ed  Tuesday June 27, 2006 at 10:36:09 PM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:49 PM EDT
 # From the definitions    ntpdsim-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -69,7 +69,7 @@ This is the automatically generated usage text for ntpdsim:
 
 @exampleindent 0
 @example
-ntpdsim - NTP daemon simulation program - Ver. 4.2.3p10
+ntpdsim - NTP daemon simulation program - Ver. 4.2.3p2
 USAGE:  ntpdsim [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
@@ -133,9 +133,9 @@ or by a single hyphen and the flag character.
 
 The following option preset mechanisms are supported:
  - reading file /users/stenn/.ntprc
- - reading file /deacon/backroom/ntp-dev-hms/ntpd/.ntprc
+ - reading file /deacon/backroom/ntp-dev/ntpd/.ntprc
  - reading file /users/stenn/.ntprc
- - reading file /deacon/backroom/ntp-dev-hms/ntpd/.ntprc
+ - reading file /deacon/backroom/ntp-dev/ntpd/.ntprc
  - examining environment variables named NTPDSIM_*
 
 
index 1f629d13c1339a1483db7f9526b9e7ea7a726a1d..edb7b8e7b0420e71cce1db9d1c27758716bf67fd 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPDSIM 1 2006-06-27 "" "Programmer's Manual"
+.TH NTPDSIM 1 2006-08-02 "( 4.2.3p23)" "Programmer's Manual"
 .\"  DO NOT EDIT THIS FILE   (ntpdsim.1)
 .\"  
-.\"  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:36:08 PM EDT
+.\"  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:14:47 PM EDT
 .\"  From the definitions    ntpdsim-opts.def
 .\"  and the template file   agman1.tpl
 .\"
@@ -10,7 +10,7 @@ ntpdsim \- NTP daemon simulation program
 .SH SYNOPSIS
 .B ntpdsim
 .\" Mixture of short (flag) options and long options
-.RB [ -\fIflag\fP " [\fIvalue\fP]]... [" --\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
+.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
 .PP
 All arguments must be options.
 .SH "DESCRIPTION"
@@ -18,21 +18,21 @@ This manual page documents, briefly, the \fBntpdsim\fP command.
 
 .SH OPTIONS
 .TP
-.BR -4 ", " --ipv4
+.BR \-4 ", " \--ipv4
 Force IPv4 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv4 namespace.
 .TP
-.BR -6 ", " --ipv6
+.BR \-6 ", " \--ipv6
 Force IPv6 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv6 namespace.
 .TP
-.BR -a ", " --authreq
+.BR \-a ", " \--authreq
 Require crypto authentication.
 This option must not appear in combination with any of the following options:
 authnoreq.
@@ -41,7 +41,7 @@ Require cryptographic authentication for broadcast client,
 multicast client and symmetric passive associations.
 This is the default.
 .TP
-.BR -A ", " --authnoreq
+.BR \-A ", " \--authnoreq
 Do not require crypto authentication.
 This option must not appear in combination with any of the following options:
 authreq.
@@ -50,42 +50,42 @@ Do not require cryptographic authentication for broadcast client,
 multicast client and symmetric passive associations.
 This is almost never a good idea.
 .TP
-.BR -b ", " --bcastsync
+.BR \-b ", " \--bcastsync
 Allow us to sync to broadcast servers.
 .sp
 
 .TP
-.BR -B " \fIstring\fP, " --simbroadcastdelay "=" \fIstring\fP
+.BR \-B " \fIstring\fP, " \--simbroadcastdelay "=" \fIstring\fP
 Simulator broadcast delay.
 .sp
 
 .TP
-.BR -c " \fIstring\fP, " --configfile "=" \fIstring\fP
+.BR \-c " \fIstring\fP, " \--configfile "=" \fIstring\fP
 configuration file name.
 .sp
 The name and path of the configuration file,
 /etc/ntp.conf
 by default.
 .TP
-.BR -C " \fIstring\fP, " --phasenoise "=" \fIstring\fP
+.BR \-C " \fIstring\fP, " \--phasenoise "=" \fIstring\fP
 Phase noise level.
 .sp
 
 .TP
-.BR -d ", " --debug-level
+.BR \-d ", " \--debug-level
 Increase output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Increase the debugging message output level.
 .TP
-.BR -D " \fIstring\fP, " --set-debug-level "=" \fIstring\fP
+.BR \-D " \fIstring\fP, " \--set-debug-level "=" \fIstring\fP
 Set the output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Set the output debugging level.  Can be supplied multiple times,
 but each overrides the previous value(s).
 .TP
-.BR -f " \fIstring\fP, " --driftfile "=" \fIstring\fP
+.BR \-f " \fIstring\fP, " \--driftfile "=" \fIstring\fP
 frequency drift file name.
 .sp
 The name and path of the frequency file,
@@ -97,7 +97,7 @@ configuration specification in the
 /etc/ntp.conf
 file.
 .TP
-.BR -g ", " --panicgate
+.BR \-g ", " \--panicgate
 Allow the first adjustment to be Big.
 .sp
 Normally,
@@ -113,12 +113,12 @@ See the
 tinker
 configuration file directive for other options.
 .TP
-.BR -H " \fIstring\fP, " --simslew "=" \fIstring\fP
+.BR \-H " \fIstring\fP, " \--simslew "=" \fIstring\fP
 Simuator slew.
 .sp
 
 .TP
-.BR -i " \fIstring\fP, " --jaildir "=" \fIstring\fP
+.BR \-i " \fIstring\fP, " \--jaildir "=" \fIstring\fP
 Jail directory.
 .sp
 Chroot the server to the directory
@@ -129,13 +129,13 @@ You may need to also specify a
 -u
 option.
 .TP
-.BR -I " \fIiface\fP, " --interface "=" \fIiface\fP
+.BR \-I " \fIiface\fP, " \--interface "=" \fIiface\fP
 Listen on interface.
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -k " \fIstring\fP, " --keyfile "=" \fIstring\fP
+.BR \-k " \fIstring\fP, " \--keyfile "=" \fIstring\fP
 path to symmetric keys.
 .sp
 Specify the name and path of the symmetric key file.
@@ -145,7 +145,7 @@ This is the same operation as the
 keys keyfile
 configuration file directive.
 .TP
-.BR -l " \fIstring\fP, " --logfile "=" \fIstring\fP
+.BR \-l " \fIstring\fP, " \--logfile "=" \fIstring\fP
 path to the log file.
 .sp
 Specify the name and path of the log file.
@@ -154,29 +154,29 @@ This is the same operation as the
 logfile logfile
 configuration file directive.
 .TP
-.BR -L ", " --novirtualips
+.BR \-L ", " \--novirtualips
 Do not listen to virtual IPs.
 .sp
 Do not listen to virtual IPs. The default is to listen.
 .TP
-.BR -n ", " --nofork
+.BR \-n ", " \--nofork
 Do not fork.
 .sp
 
 .TP
-.BR -N ", " --nice
+.BR \-N ", " \--nice
 Run at high priority.
 .sp
 To the extent permitted by the operating system, run
 ntpd
 at the highest priority.
 .TP
-.BR -O " \fIstring\fP, " --servertime "=" \fIstring\fP
+.BR \-O " \fIstring\fP, " \--servertime "=" \fIstring\fP
 Server time.
 .sp
 
 .TP
-.BR -p " \fIstring\fP, " --pidfile "=" \fIstring\fP
+.BR \-p " \fIstring\fP, " \--pidfile "=" \fIstring\fP
 path to the PID file.
 .sp
 Specify the name and path of the file used to record
@@ -186,7 +186,7 @@ This is the same operation as the
 pidfile pidfile
 configuration file directive.
 .TP
-.BR -P " \fInumber\fP, " --priority "=" \fInumber\fP
+.BR \-P " \fInumber\fP, " \--priority "=" \fInumber\fP
 Process priority.
 This option takes an integer number as its argument.
 .sp
@@ -196,7 +196,7 @@ at the specified
 sched_setscheduler(SCHED_FIFO)
 priority.
 .TP
-.BR -q ", " --quit
+.BR \-q ", " \--quit
 Set the time and quit.
 .sp
 ntpd
@@ -210,12 +210,12 @@ and
 options can be used with this option.
 Note: The kernel time discipline is disabled with this option.
 .TP
-.BR -r " \fIstring\fP, " --propagationdelay "=" \fIstring\fP
+.BR \-r " \fIstring\fP, " \--propagationdelay "=" \fIstring\fP
 Broadcast/propagation delay.
 .sp
 Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol.
 .TP
-.BR -U " \fInumber\fP, " --updateinterval "=" \fInumber\fP
+.BR \-U " \fInumber\fP, " \--updateinterval "=" \fInumber\fP
 interval in seconds between scans for new or dropped interfaces.
 This option takes an integer number as its argument.
 .sp
@@ -224,7 +224,7 @@ For systems with routing socket support the scans will be performed shortly afte
 has been detected by the system.
 Use 0 to disable scanning. 60 seconds is the minimum time between scans.
 .TP
-.BR -s " \fIstring\fP, " --statsdir "=" \fIstring\fP
+.BR \-s " \fIstring\fP, " \--statsdir "=" \fIstring\fP
 Statistics file location.
 .sp
 Specify the directory path for files created by the statistics facility.
@@ -232,28 +232,28 @@ This is the same operation as the
 statsdir statsdir
 configuration file directive.
 .TP
-.BR -S " \fIstring\fP, " --endsimtime "=" \fIstring\fP
+.BR \-S " \fIstring\fP, " \--endsimtime "=" \fIstring\fP
 Simulation end time.
 .sp
 
 .TP
-.BR -t " \fItkey\fP, " --trustedkey "=" \fItkey\fP
+.BR \-t " \fItkey\fP, " \--trustedkey "=" \fItkey\fP
 Trusted key number.
 This option may appear an unlimited number of times.
 .sp
 Add a key number to the trusted key list.
 .TP
-.BR -T " \fIstring\fP, " --freqerr "=" \fIstring\fP
+.BR \-T " \fIstring\fP, " \--freqerr "=" \fIstring\fP
 Simulation frequency error.
 .sp
 
 .TP
-.BR -W " \fIstring\fP, " --walknoise "=" \fIstring\fP
+.BR \-W " \fIstring\fP, " \--walknoise "=" \fIstring\fP
 Simulation random walk noise.
 .sp
 
 .TP
-.BR -u " \fIstring\fP, " --user "=" \fIstring\fP
+.BR \-u " \fIstring\fP, " \--user "=" \fIstring\fP
 Run as userid (or userid:groupid).
 .sp
 Specify a user, and optionally a group, to switch to.
@@ -264,19 +264,19 @@ Currently, this option is supported under NetBSD (configure with
 --enable-linuxcaps
 ).
 .TP
-.BR -v " \fInvar\fP, " --var "=" \fInvar\fP
+.BR \-v " \fInvar\fP, " \--var "=" \fInvar\fP
 make ARG an ntp variable (RW).
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -V " \fIndvar\fP, " --dvar "=" \fIndvar\fP
+.BR \-V " \fIndvar\fP, " \--dvar "=" \fIndvar\fP
 make ARG an ntp variable (RW|DEF).
 This option may appear an unlimited number of times.
 .sp
 
 .TP
-.BR -x " \fIstring\fP, " --slew "=" \fIstring\fP
+.BR \-x " \fIstring\fP, " \--slew "=" \fIstring\fP
 Slew up to 600 seconds.
 .sp
 Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold.
@@ -293,12 +293,12 @@ tinker
 configuration file directive for other options.
 Note: The kernel time discipline is disabled with this option.
 .TP
-.BR -Y " \fIstring\fP, " --ndelay "=" \fIstring\fP
+.BR \-Y " \fIstring\fP, " \--ndelay "=" \fIstring\fP
 Simulation network delay.
 .sp
 
 .TP
-.BR -Z " \fIstring\fP, " --pdelay "=" \fIstring\fP
+.BR \-Z " \fIstring\fP, " \--pdelay "=" \fIstring\fP
 Simulation processing delay.
 .sp
 
@@ -313,7 +313,7 @@ Extended usage information passed thru pager.
 Save the option state to \fIrcfile\fP.  The default is the \fIlast\fP
 configuration file listed in the \fBOPTION PRESETS\fP section, below.
 .TP
-.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " --no-load-opts"
+.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " \--no-load-opts"
 Load options from \fIrcfile\fP.
 The \fIno-load-opts\fP form will disable the loading
 of earlier RC/INI files.  \fI--no-load-opts\fP is handled early,
@@ -333,7 +333,7 @@ environment variables named:
 .aj
 The environmental presets take precedence (are processed later than)
 the configuration files.
-The \fIhomerc\fP files are "\fI$HOME\fP", "\fI.\fP", "\fI$HOME\fP", and "\fI.\fP".
+The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
 If any of these are directories, then the file \fI.ntprc\fP
 is searched for within those directories.
 .SH AUTHOR
index d73100d7466c33d2028416cda26b76bf55429251..63194e8ab4e5574dd2ab76f6e1733b34c0760c78 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpdc-opts.c)
  *  
- *  It has been AutoGen-ed  Saturday July  8, 2006 at 06:02:43 AM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:06 PM EDT
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  */
@@ -195,8 +195,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-/* extracted from optmain.tpl near line 586 */
-
 #if defined(TEST_NTPDC_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -430,7 +428,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPDC";
 tSCC   zUsageTitle[] =
-"ntpdc - vendor-specific NTP query program - Ver. 4.2.3p14\n\
+"ntpdc - vendor-specific NTP query program - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
index 09810afe2059e35b6fd4c2a417c795fef4ad9f78..6a469e8de032ece6a8a43bcdb81744c6da9ae18f 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpdc-opts.h)
  *  
- *  It has been AutoGen-ed  Saturday July  8, 2006 at 06:02:43 AM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:06 PM EDT
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  */
@@ -44,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -68,8 +69,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    15
-#define NTPDC_VERSION       "4.2.3p14"
-#define NTPDC_FULL_VERSION  "ntpdc - vendor-specific NTP query program - Ver. 4.2.3p14"
+#define NTPDC_VERSION       "4.2.3p23"
+#define NTPDC_FULL_VERSION  "ntpdc - vendor-specific NTP query program - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -127,7 +128,7 @@ typedef enum {
                 ntpdcOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*ntpdcOptions.pUsageProc)( &ntpdcOptions, c )
-/* extracted from opthead near line 287 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index 29166b4c413f728cba0f52c1d57197f4d03b2d74..03249a499068facf46b514ab6fb3cbcdae865531 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (ntpdc-opts.texi)
 # 
-# It has been AutoGen-ed  Saturday July  8, 2006 at 06:02:45 AM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:09 PM EDT
 # From the definitions    ntpdc-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -59,8 +59,8 @@ This is the automatically generated usage text for ntpdc:
 
 @exampleindent 0
 @example
-ntpdc - vendor-specific NTP query program - Ver. 4.2.3p2
-USAGE:  ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
+ntpdc - vendor-specific NTP query program - Ver. 4.2.3p14
+USAGE:  ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
    -6 no  ipv6           Force IPv6 DNS name resolution
index e91190fa5eb494be90106a68446c75c89e64a2f5..5df0e89cd8721e5a0d761ca31712348f15c28d2d 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPDC 1 2006-07-08 "( 4.2.3p14)" "Programmer's Manual"
+.TH NTPDC 1 2006-08-02 "( 4.2.3p23)" "Programmer's Manual"
 .\"  DO NOT EDIT THIS FILE   (ntpdc.1)
 .\"  
-.\"  It has been AutoGen-ed  Saturday July  8, 2006 at 06:02:44 AM EDT
+.\"  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:08 PM EDT
 .\"  From the definitions    ntpdc-opts.def
 .\"  and the template file   agman1.tpl
 .\"
index dbcee753f05ba9d6c069a5e223353f7ae2d91715..86188701610096a26aecd38b7b1fed7b25fabaf4 100644 (file)
@@ -2,11 +2,29 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpq-opts.c)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:52 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:36 PM EDT
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  */
 
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This source file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpq author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpq copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
+
+
+
 #define OPTION_CODE_COMPILE 1
 #include "ntpq-opts.h"
 
@@ -17,7 +35,7 @@ tSCC zCopyright[] =
        "ntpq copyright (c) 1970-2006 ntp.org, all rights reserved";
 tSCC zCopyrightNotice[] =
        
-/* extracted from /backroom/ntp-dev-hms/include/copyright.def near line 8 */
+/* extracted from ../include/copyright.def near line 8 */
 "see html/copyright.html";
 extern tUsageProc optionUsage;
 
@@ -149,8 +167,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-/* extracted from optmain.tpl near line 586 */
-
 #if defined(TEST_NTPQ_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -360,12 +376,10 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPQ";
 tSCC   zUsageTitle[] =
-"ntpq - standard NTP query program - Ver. 4.2.3p12\n\
+"ntpq - standard NTP query program - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
-       "$HOME",
-       ".",
        "$HOME",
        ".",
        NULL };
@@ -380,243 +394,9 @@ implement the standard NTP mode 6 control message formats defined\n\
 in Appendix B of the NTPv3 specification RFC1305, requesting\n\
 information about current state and/or changes in that state.\n\
 The same formats are used in NTPv4, although some of the\n\
-variables have changed and new ones added. The description on this\n\
-page is for the NTPv4 variables.\n\
-The program may be run either in interactive mode or controlled using\n\
-command line arguments.\n\
-Requests to read and write arbitrary\n\
-variables can be assembled, with raw and pretty-printed output\n\
-options being available.\n\
-The\n\
-[= prog-name =]\n\
-utility can also obtain and print a\n\
-list of peers in a common format by sending multiple queries to the\n\
-server.\n\n\
-If one or more request options is included on the command line\n\
-when\n\
-[= prog-name =]\n\
-is executed, each of the requests will be sent\n\
-to the NTP servers running on each of the hosts given as command\n\
-line arguments, or on localhost by default.\n\
-If no request options\n\
-are given,\n\
-[= prog-name =]\n\
-will attempt to read commands from the\n\
-standard input and execute these on the NTP server running on the\n\
-first host given on the command line, again defaulting to localhost\n\
-when no other host is specified.\n\
-The\n\
-[= prog-name =]\n\
-utility will prompt for\n\
-commands if the standard input is a terminal device.\n\n\
-The\n\
-[= prog-name =]\n\
-utility uses NTP mode 6 packets to communicate with the\n\
-NTP server, and hence can be used to query any compatible server on\n\
-the network which permits it.\n\
-Note that since NTP is a UDP protocol\n\
-this communication will be somewhat unreliable, especially over\n\
-large distances in terms of network topology.\n\
-The\n\
-[= prog-name =]\n\
-utility makes\n\
-one attempt to retransmit requests, and will time requests out if\n\
-the remote host is not heard from within a suitable timeout\n\
-time.\n\n\
-Specifying a\n\
-command line option other than\n\
-.Fl i\n\
-or\n\
-.Fl n\n\
-will\n\
-cause the specified query (queries) to be sent to the indicated\n\
-host(s) immediately.\n\
-Otherwise,\n\
-[= prog-name =]  \n\
-will attempt to read\n\
-interactive format commands from the standard input.\n\
-.Ss \"Internal Commands\"\n\
-Interactive format commands consist of a keyword followed by zero\n\
-to four arguments.\n\
-Only enough characters of the full keyword to\n\
-uniquely identify the command need be typed.\n\n\
-A\n\
-number of interactive format commands are executed entirely within\n\
-the\n\
-[= prog-name =]\n\
-utility itself and do not result in NTP mode 6\n\
-requests being sent to a server.\n\
-These are described following.\n\
-@table @code\n\
-@item ? [command_keyword]\n\
-@itemx help [command_keyword]\n\
-A\n\
-.Ql \\&?\n\
-by itself will print a list of all the command\n\
-keywords known to this incarnation of\n\
-[= prog-name =] .\n\
-A\n\
-.Ql \\&?\n\
-followed by a command keyword will print function and usage\n\
-information about the command.\n\
-This command is probably a better\n\
-source of information about\n\
-[= prog-name =]\n\
-than this manual\n\
-page.\n\
-@item addvars\n\
-.Ar variable_name [=value] ...\n\
-.Xc\n\
-@item rmvars variable_name ...\n\
-@item clearvars\n\
-The data carried by NTP mode 6 messages consists of a list of\n\
-items of the form\n\
-.Ql variable_name=value ,\n\
-where the\n\
-.Ql =value\n\
-is ignored, and can be omitted,\n\
-in requests to the server to read variables.\n\
-The\n\
-[= prog-name =]\n\
-utility maintains an internal list in which data to be included in control\n\
-messages can be assembled, and sent using the\n\
-.Ic readlist\n\
-and\n\
-.Ic writelist\n\
-commands described below.\n\
-The\n\
-.Ic addvars\n\
-command allows variables and their optional values to be added to\n\
-the list.\n\
-If more than one variable is to be added, the list should\n\
-be comma-separated and not contain white space.\n\
-The\n\
-.Ic rmvars\n\
-command can be used to remove individual variables from the list,\n\
-while the\n\
-.Ic clearlist\n\
-command removes all variables from the\n\
-list.\n\
-@item authenticate [ yes | no ]\n\
-Normally\n\
-[= prog-name =]\n\
-does not authenticate requests unless\n\
-they are write requests.\n\
-The command\n\
-.Ql authenticate yes\n\
-causes\n\
-[= prog-name =]\n\
-to send authentication with all requests it\n\
-makes.\n\
-Authenticated requests causes some servers to handle\n\
-requests slightly differently, and can occasionally melt the CPU in\n\
-fuzzballs if you turn authentication on before doing a\n\
-.Ic peer\n\
-display.\n\
-The command\n\
-.Ql authenticate\n\
-causes\n\
-[= prog-name =]\n\
-to display whether or not\n\
-[= prog-name =]\n\
-is currently autheinticating requests.\n\
-@item cooked\n\
-Causes output from query commands to be \"cooked\", so that\n\
-variables which are recognized by\n\
-[= prog-name =]\n\
-will have their\n\
-values reformatted for human consumption.\n\
-Variables which\n\
-[= prog-name =]\n\
-thinks should have a decodable value but didn't are\n\
-marked with a trailing\n\
-.Ql \\&? .\n\
-.@item debug [\n\
-.Cm more |\n\
-.Cm less |\n\
-.Cm off\n\
-]\n\
-.Xc\n\
-With no argument, displays the current debug level.\n\
-Otherwise, the debug level is changed to the indicated level.\n\
-@item delay milliseconds\n\
-Specify a time interval to be added to timestamps included in\n\
-requests which require authentication.\n\
-This is used to enable\n\
-(unreliable) server reconfiguration over long delay network paths\n\
-or between machines whose clocks are unsynchronized.\n\
-Actually the\n\
-server does not now require timestamps in authenticated requests,\n\
-so this command may be obsolete.\n\
-@item host hostname\n\
-Set the host to which future queries will be sent.\n\
-Hostname may\n\
-be either a host name or a numeric address.\n\
-@item hostnames Cm yes | Cm no\n\
-If\n\
-.Cm yes\n\
-is specified, host names are printed in\n\
-information displays.\n\
-If\n\
-.Cm no\n\
-is specified, numeric\n\
-addresses are printed instead.\n\
-The default is\n\
-.Cm yes ,\n\
-unless\n\
-modified using the command line\n\
-.Fl n\n\
-switch.\n\
-@item keyid keyid\n\
-This command allows the specification of a key number to be\n\
-used to authenticate configuration requests.\n\
-This must correspond\n\
-to a key number the server has been configured to use for this\n\
-purpose.\n\
-@item ntpversion [\n\
-.Cm 1 |\n\
-.Cm 2 |\n\
-.Cm 3 |\n\
-.Cm 4\n\
-]\n\
-.Xc\n\
-Sets the NTP version number which\n\
-[= prog-name =]\n\
-claims in\n\
-packets.\n\
-Defaults to 3, Note that mode 6 control messages (and\n\
-modes, for that matter) didn't exist in NTP version 1.\n\
-There appear\n\
-to be no servers left which demand version 1.\n\
-With no argument, displays the current NTP version that will be used\n\
-when communicating with servers.\n\
-@item quit\n\
-Exit\n\
-[= prog-name =] .\n\
-@item passwd\n\
-This command prompts you to type in a password (which will not\n\
-be echoed) which will be used to authenticate configuration\n\
-requests.\n\
-The password must correspond to the key configured for\n\
-use by the NTP server for this purpose if such requests are to be\n\
-successful.\n\
-@item raw\n\
-Causes all output from query commands is printed as received\n\
-from the remote server.\n\
-The only formating/interpretation done on\n\
-the data is to transform nonascii data into a printable (but barely\n\
-understandable) form.\n\
-@item timeout Ar milliseconds\n\
-Specify a timeout period for responses to server queries.\n\
-The\n\
-default is about 5000 milliseconds.\n\
-Note that since\n\
-[= prog-name =]\n\
-retries each query once after a timeout, the total waiting time for\n\
-a timeout will be twice the timeout value set.\n\
-@end table\n";
+variables have changed and new ones added.\n";
 tSCC    zFullVersion[] = NTPQ_FULL_VERSION;
-/* extracted from optcode near line 321 */
+/* extracted from optcode near line 368 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -699,14 +479,18 @@ main( int argc, char** argv )
     return res;
 }
 #endif  /* defined TEST_NTPQ_OPTS */
-/* extracted from optcode near line 418 */
+/* extracted from optcode near line 465 */
 
 #if ENABLE_NLS
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
+static char* AO_gettext( const char* pz );
+static void  coerce_it(void** s);
+
 static char*
 AO_gettext( const char* pz )
 {
@@ -724,6 +508,10 @@ AO_gettext( const char* pz )
     return pzRes;
 }
 
+static void coerce_it(void** s) { *s = AO_gettext(*s); }
+#define COERSION(_f) \
+  coerce_it((void*)&(ntpqOptions._f))
+
 /*
  *  This invokes the translation code (e.g. gettext(3)).
  */
@@ -766,12 +554,12 @@ translate_option_strings( void )
             pOD++;
         }
     }
-    ntpqOptions.pzCopyright   = AO_gettext(ntpqOptions.pzCopyright);
-    ntpqOptions.pzCopyNotice  = AO_gettext(ntpqOptions.pzCopyNotice);
-    ntpqOptions.pzFullVersion = AO_gettext(ntpqOptions.pzFullVersion);
-    ntpqOptions.pzUsageTitle  = AO_gettext(ntpqOptions.pzUsageTitle);
-    ntpqOptions.pzExplain     = AO_gettext(ntpqOptions.pzExplain);
-    ntpqOptions.pzDetail      = AO_gettext(ntpqOptions.pzDetail);
+    COERSION(pzCopyright);
+    COERSION(pzCopyNotice);
+    COERSION(pzFullVersion);
+    COERSION(pzUsageTitle);
+    COERSION(pzExplain);
+    COERSION(pzDetail);
 }
 
 #endif /* ENABLE_NLS */
index 2992708d313f0a891214ea63771aca301bb382b7..a40950244f42863046747bd8883e3c97709054cd 100644 (file)
@@ -2,10 +2,26 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntpq-opts.h)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:52 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:36 PM EDT
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This header file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntpq author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntpq copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
 /*
  *  This file contains the programmatic interface to the Automated
  *  Options generated for the ntpq program.
  */
 #ifndef AUTOOPTS_NTPQ_OPTS_H_GUARD
 #define AUTOOPTS_NTPQ_OPTS_H_GUARD
-
-/*
- * ntpq copyright 1970-2006 ntp.org - all rights reserved
- *
- * see html/copyright.html
- */
 #include "config.h"
 #include <autoopts/options.h>
 
@@ -34,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -56,8 +67,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    13
-#define NTPQ_VERSION       "4.2.3p12"
-#define NTPQ_FULL_VERSION  "ntpq - standard NTP query program - Ver. 4.2.3p12"
+#define NTPQ_VERSION       "4.2.3p23"
+#define NTPQ_FULL_VERSION  "ntpq - standard NTP query program - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -113,7 +124,7 @@ typedef enum {
                 ntpqOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*ntpqOptions.pUsageProc)( &ntpqOptions, c )
-/* extracted from opthead near line 289 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index 46fa0c85b7da892eda9a9ae3a21b744a25bb98ff..2ef522a35ac6ed0235921e2a5f4c00546090a6fe 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (ntpq-opts.texi)
 # 
-# It has been AutoGen-ed  Tuesday June 27, 2006 at 10:37:24 PM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:39 PM EDT
 # From the definitions    ntpq-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -20,246 +20,7 @@ implement the standard NTP mode 6 control message formats defined
 in Appendix B of the NTPv3 specification RFC1305, requesting
 information about current state and/or changes in that state.
 The same formats are used in NTPv4, although some of the
-variables have changed and new ones added. The description on this
-page is for the NTPv4 variables.
-The program may be run either in interactive mode or controlled using
-command line arguments.
-Requests to read and write arbitrary
-variables can be assembled, with raw and pretty-printed output
-options being available.
-The
-[= prog-name =]
-utility can also obtain and print a
-list of peers in a common format by sending multiple queries to the
-server.
-
-If one or more request options is included on the command line
-when
-[= prog-name =]
-is executed, each of the requests will be sent
-to the NTP servers running on each of the hosts given as command
-line arguments, or on localhost by default.
-If no request options
-are given,
-[= prog-name =]
-will attempt to read commands from the
-standard input and execute these on the NTP server running on the
-first host given on the command line, again defaulting to localhost
-when no other host is specified.
-The
-[= prog-name =]
-utility will prompt for
-commands if the standard input is a terminal device.
-
-The
-[= prog-name =]
-utility uses NTP mode 6 packets to communicate with the
-NTP server, and hence can be used to query any compatible server on
-the network which permits it.
-Note that since NTP is a UDP protocol
-this communication will be somewhat unreliable, especially over
-large distances in terms of network topology.
-The
-[= prog-name =]
-utility makes
-one attempt to retransmit requests, and will time requests out if
-the remote host is not heard from within a suitable timeout
-time.
-
-Specifying a
-command line option other than
-.Fl i
-or
-.Fl n
-will
-cause the specified query (queries) to be sent to the indicated
-host(s) immediately.
-Otherwise,
-[= prog-name =]  
-will attempt to read
-interactive format commands from the standard input.
-.Ss "Internal Commands"
-Interactive format commands consist of a keyword followed by zero
-to four arguments.
-Only enough characters of the full keyword to
-uniquely identify the command need be typed.
-
-A
-number of interactive format commands are executed entirely within
-the
-[= prog-name =]
-utility itself and do not result in NTP mode 6
-requests being sent to a server.
-These are described following.
-@table @code
-@item ? [command_keyword]
-@itemx help [command_keyword]
-A
-.Ql \&?
-by itself will print a list of all the command
-keywords known to this incarnation of
-[= prog-name =] .
-A
-.Ql \&?
-followed by a command keyword will print function and usage
-information about the command.
-This command is probably a better
-source of information about
-[= prog-name =]
-than this manual
-page.
-@item addvars
-.Ar variable_name [=value] ...
-.Xc
-@item rmvars variable_name ...
-@item clearvars
-The data carried by NTP mode 6 messages consists of a list of
-items of the form
-.Ql variable_name=value ,
-where the
-.Ql =value
-is ignored, and can be omitted,
-in requests to the server to read variables.
-The
-[= prog-name =]
-utility maintains an internal list in which data to be included in control
-messages can be assembled, and sent using the
-.Ic readlist
-and
-.Ic writelist
-commands described below.
-The
-.Ic addvars
-command allows variables and their optional values to be added to
-the list.
-If more than one variable is to be added, the list should
-be comma-separated and not contain white space.
-The
-.Ic rmvars
-command can be used to remove individual variables from the list,
-while the
-.Ic clearlist
-command removes all variables from the
-list.
-@item authenticate [ yes | no ]
-Normally
-[= prog-name =]
-does not authenticate requests unless
-they are write requests.
-The command
-.Ql authenticate yes
-causes
-[= prog-name =]
-to send authentication with all requests it
-makes.
-Authenticated requests causes some servers to handle
-requests slightly differently, and can occasionally melt the CPU in
-fuzzballs if you turn authentication on before doing a
-.Ic peer
-display.
-The command
-.Ql authenticate
-causes
-[= prog-name =]
-to display whether or not
-[= prog-name =]
-is currently autheinticating requests.
-@item cooked
-Causes output from query commands to be "cooked", so that
-variables which are recognized by
-[= prog-name =]
-will have their
-values reformatted for human consumption.
-Variables which
-[= prog-name =]
-thinks should have a decodable value but didn't are
-marked with a trailing
-.Ql \&? .
-.@item debug [
-.Cm more |
-.Cm less |
-.Cm off
-]
-.Xc
-With no argument, displays the current debug level.
-Otherwise, the debug level is changed to the indicated level.
-@item delay milliseconds
-Specify a time interval to be added to timestamps included in
-requests which require authentication.
-This is used to enable
-(unreliable) server reconfiguration over long delay network paths
-or between machines whose clocks are unsynchronized.
-Actually the
-server does not now require timestamps in authenticated requests,
-so this command may be obsolete.
-@item host hostname
-Set the host to which future queries will be sent.
-Hostname may
-be either a host name or a numeric address.
-@item hostnames Cm yes | Cm no
-If
-.Cm yes
-is specified, host names are printed in
-information displays.
-If
-.Cm no
-is specified, numeric
-addresses are printed instead.
-The default is
-.Cm yes ,
-unless
-modified using the command line
-.Fl n
-switch.
-@item keyid keyid
-This command allows the specification of a key number to be
-used to authenticate configuration requests.
-This must correspond
-to a key number the server has been configured to use for this
-purpose.
-@item ntpversion [
-.Cm 1 |
-.Cm 2 |
-.Cm 3 |
-.Cm 4
-]
-.Xc
-Sets the NTP version number which
-[= prog-name =]
-claims in
-packets.
-Defaults to 3, Note that mode 6 control messages (and
-modes, for that matter) didn't exist in NTP version 1.
-There appear
-to be no servers left which demand version 1.
-With no argument, displays the current NTP version that will be used
-when communicating with servers.
-@item quit
-Exit
-[= prog-name =] .
-@item passwd
-This command prompts you to type in a password (which will not
-be echoed) which will be used to authenticate configuration
-requests.
-The password must correspond to the key configured for
-use by the NTP server for this purpose if such requests are to be
-successful.
-@item raw
-Causes all output from query commands is printed as received
-from the remote server.
-The only formating/interpretation done on
-the data is to transform nonascii data into a printable (but barely
-understandable) form.
-@item timeout Ar milliseconds
-Specify a timeout period for responses to server queries.
-The
-default is about 5000 milliseconds.
-Note that since
-[= prog-name =]
-retries each query once after a timeout, the total waiting time for
-a timeout will be twice the timeout value set.
-@end table
-
+variables have changed and new ones added.
 
 This section was generated by @strong{AutoGen},
 the aginfo template and the option descriptions for the @command{ntpq} program.  It documents the ntpq usage text and option meanings.
@@ -286,7 +47,7 @@ This is the automatically generated usage text for ntpq:
 
 @exampleindent 0
 @example
-ntpq - standard NTP query program - Ver. 4.2.3p10
+ntpq - standard NTP query program - Ver. 4.2.3p12
 USAGE:  ntpq [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
@@ -319,9 +80,9 @@ or by a single hyphen and the flag character.
 
 The following option preset mechanisms are supported:
  - reading file /users/stenn/.ntprc
- - reading file /deacon/backroom/ntp-dev-hms/ntpq/.ntprc
+ - reading file /deacon/backroom/ntp-dev/ntpq/.ntprc
  - reading file /users/stenn/.ntprc
- - reading file /deacon/backroom/ntp-dev-hms/ntpq/.ntprc
+ - reading file /deacon/backroom/ntp-dev/ntpq/.ntprc
  - examining environment variables named NTPQ_*
 
 The
index c1ae560e52fdedd20913dc6143c14c679733d45f..83bccd8f96a1bcdef82151cc3903774eeabffd5a 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPQ 1 2006-06-27 "" "Programmer's Manual"
+.TH NTPQ 1 2006-08-02 "( 4.2.3p23)" "Programmer's Manual"
 .\"  DO NOT EDIT THIS FILE   (ntpq.1)
 .\"  
-.\"  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:37:24 PM EDT
+.\"  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:16:37 PM EDT
 .\"  From the definitions    ntpq-opts.def
 .\"  and the template file   agman1.tpl
 .\"
@@ -10,7 +10,7 @@ ntpq \- standard NTP query program
 .SH SYNOPSIS
 .B ntpq
 .\" Mixture of short (flag) options and long options
-.RB [ -\fIflag\fP " [\fIvalue\fP]]... [" --\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
+.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
 .br
 .in +8
 [ host ...]
@@ -98,12 +98,12 @@ These are described following.
 .IR "? [command_keyword]"
 .sp 1x help [command_keyword]
 A
-.Ql \\&?
+.Ql \&?
 by itself will print a list of all the command
 keywords known to this incarnation of
 [= prog-name =] .
 A
-.Ql \\&?
+.Ql \&?
 followed by a command keyword will print function and usage
 information about the command.
 This command is probably a better
@@ -182,7 +182,7 @@ Variables which
 [= prog-name =]
 thinks should have a decodable value but didn't are
 marked with a trailing
-.Ql \\&? .
+.Ql \&? .
 .@item debug [
 .Cm more |
 .Cm less |
@@ -279,21 +279,21 @@ a timeout will be twice the timeout value set.
 
 .SH OPTIONS
 .TP
-.BR -4 ", " --ipv4
+.BR \-4 ", " \--ipv4
 Force IPv4 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv4 namespace.
 .TP
-.BR -6 ", " --ipv6
+.BR \-6 ", " \--ipv6
 Force IPv6 DNS name resolution.
 This option is a member of the ipv4 class of options.
 .sp
 Force DNS resolution of following host names on the command line
 to the IPv6 namespace.
 .TP
-.BR -c " \fIcmd\fP, " --command "=" \fIcmd\fP
+.BR \-c " \fIcmd\fP, " \--command "=" \fIcmd\fP
 run a command and exit.
 This option may appear an unlimited number of times.
 .sp
@@ -301,20 +301,20 @@ The following argument is interpreted as an interactive format command
 and is added to the list of commands to be executed on the specified
 host(s).
 .TP
-.BR -d ", " --debug-level
+.BR \-d ", " \--debug-level
 Increase output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Increase the debugging message output level.
 .TP
-.BR -D " \fIstring\fP, " --set-debug-level "=" \fIstring\fP
+.BR \-D " \fIstring\fP, " \--set-debug-level "=" \fIstring\fP
 Set the output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Set the output debugging level.  Can be supplied multiple times,
 but each overrides the previous value(s).
 .TP
-.BR -p ", " --peers
+.BR \-p ", " \--peers
 Print a list of the peers.
 This option must not appear in combination with any of the following options:
 command.
@@ -322,7 +322,7 @@ command.
 Print a list of the peers known to the server as well as a summary
 of their state. This is equivalent to the 'peers' interactive command.
 .TP
-.BR -i ", " --interactive
+.BR \-i ", " \--interactive
 Force ntpq to operate in interactive mode.
 This option must not appear in combination with any of the following options:
 command, peers.
@@ -330,7 +330,7 @@ command, peers.
 Force ntpq to operate in interactive mode.  Prompts will be written
 to the standard output and commands read from the standard input.
 .TP
-.BR -n ", " --numeric
+.BR \-n ", " \--numeric
 numeric host addresses.
 .sp
 Output all host addresses in dotted-quad numeric format rather than
@@ -346,7 +346,7 @@ Extended usage information passed thru pager.
 Save the option state to \fIrcfile\fP.  The default is the \fIlast\fP
 configuration file listed in the \fBOPTION PRESETS\fP section, below.
 .TP
-.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " --no-load-opts"
+.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " \--no-load-opts"
 Load options from \fIrcfile\fP.
 The \fIno-load-opts\fP form will disable the loading
 of earlier RC/INI files.  \fI--no-load-opts\fP is handled early,
@@ -366,7 +366,7 @@ environment variables named:
 .aj
 The environmental presets take precedence (are processed later than)
 the configuration files.
-The \fIhomerc\fP files are "\fI$HOME\fP", "\fI.\fP", "\fI$HOME\fP", and "\fI.\fP".
+The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
 If any of these are directories, then the file \fI.ntprc\fP
 is searched for within those directories.
 .SH AUTHOR
index 5ea1b83c08ed529c72491bc9be71d2c9e4f449ee..99c1d98a14d66b5cfaf04ee092d8f7ac3bd47f57 100644 (file)
@@ -2,11 +2,29 @@
  *  
  *  DO NOT EDIT THIS FILE   (sntp-opts.c)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:53 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:11 PM EDT
  *  From the definitions    sntp-opts.def
  *  and the template file   options
  */
 
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This source file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  sntp author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * sntp copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * See the sntp/Copyright file
+ */
+
+
+
 #define OPTION_CODE_COMPILE 1
 #include "sntp-opts.h"
 
@@ -143,8 +161,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-/* extracted from optmain.tpl near line 586 */
-
 #if defined(TEST_SNTP_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -329,7 +345,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "SNTP";
 tSCC   zUsageTitle[] =
-"sntp - standard SNTP program - Ver. 4.2.3p12\n\
+"sntp - standard SNTP program - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> | --<name> ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
@@ -343,257 +359,13 @@ tSCC    zDetail[]     = "\n\
 .I sntp\n\
 can be used as a SNTP client to query a NTP or SNTP server and either display\n\
 the time or set the local system's time (given suitable privilege).  It can be\n\
-run as an interactive command, in a\n\
+run as an interactive command or in a\n\
 .I cron\n\
-job or as a daemon.  It can be run as a daemon to provide a SNTP server for\n\
-other clients.  NTP is the Network Time Protocol (RFC 1305) and SNTP is the\n\
-Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).\n\
-.SS Options\n\
-.PP\n\
-.I sntp\n\
-recognizes the following options:\n\
-.TP\n\
-.B \\-v\n\
-indicates that diagnostic messages for non-fatal errors and a limited amount of\n\
-tracing should be written to standard error.  Fatal ones always produce a\n\
-diagnostic.  This option should be set when there is a suspected problem with\n\
-the server, network or the source.\n\
-.TP\n\
-.B \\-V\n\
-requests more and less comprehensible output, mainly for investigating problems\n\
-with apparently inconsistent timestamps.  This option should be set when the\n\
-program fails with a message indicating that is the trouble.\n\
-.TP\n\
-.B \\-W\n\
-requests very verbose debugging output, and will interfere with the timing\n\
-when writing to the terminal (because of line buffered output from C).  Note\n\
-that the times produced by this are the corrections needed, and not the error\n\
-in the local clock.  This option should be set only when debugging the source.\n\
-.TP\n\
-.B \\-q\n\
-indicates that it should query a daemon save file being maintained by it.\n\
-This needs no privilege and will change neither the save file nor the clock.\n\
-.PP\n\
-The default is that it should behave as a client, and the following options\n\
-are then relevant:\n\
-.TP\n\
-.B \\-r\n\
-indicates that the system clock should be reset by\n\
-.IR settimeofday .\n\
-Naturally, this will work only if the user has enough privilege.\n\
-.TP\n\
-.B \\-a\n\
-indicates that the system clock should be reset by\n\
-.IR adjtime .\n\
-Naturally, this will work only if the user has enough privilege.\n\
-.PP\n\
-The default is to write the estimated correct local date and time (i.e. not\n\
-UTC) to the standard output in a format like\n\
-.BR \"'1996 Oct 15 20:17:25.123 + 4.567 +/- 0.089 secs'\" ,\n\
-where the\n\
-.B \"'+ 4.567 +/- 0.089 secs'\"\n\
-indicates the estimated error in the time on the local system.  In daemon mode,\n\
-it will add drift information in a format like\n\
-.BR \"' + 1.3 +/- 0.1 ppm'\" ,\n\
-and display this at roughly\n\
-.I separation\n\
-intervals (see under the\n\
-.B \\-x\n\
-option for details).\n\
-.TP\n\
-.BI \\-l \" lockfile\"\n\
-sets the name of the lock file to ensure that there is only\n\
-one copy of\n\
-.I sntp\n\
-running at once.  The default is installation-dependent, but will usually be\n\
-.IR /etc/sntp.pid .\n\
-.TP\n\
-.BI \\-e \" minerr\"\n\
-sets the maximum ignorable variation between the clocks to\n\
-.IR minerr .\n\
-Acceptable values are from 0.001 to 1, and the default is 0.1 if a NTP host is\n\
-is specified and 0.5 otherwise.\n\
-.TP\n\
-.BI \\-E \" maxerr\"\n\
-sets the maximum value of various delays that are deemed acceptable to\n\
-.IR maxerr .\n\
-Acceptable values are from 1 to 60, and the default is 5.  It should sometimes\n\
-be increased if there are problems with the network, NTP server or system\n\
-clock, but take care.\n\
-.TP\n\
-.BI \\-P  \" prompt\"\n\
-sets the maximum clock change that will be made automatically to\n\
-.IR maxerr .\n\
-Acceptable values are from 1 to 3600 or\n\
-.IR no ,\n\
-and the default is 30.  If the program is being run interactively in ordinary\n\
-client mode, and the system clock is to be changed, larger corrections will\n\
-prompt the user for confirmation.  Specifying\n\
-.I no\n\
-will disable this and the correction will be made regardless.\n\
-.TP\n\
-.BI \\-c \" count\"\n\
-sets the maximum number of NTP packets required to\n\
-.IR count .\n\
-Acceptable values are from 1 to 25 if a NTP host is specified and from 5 to 25\n\
-otherwise, and the default is 5.  If the maximum isn't enough, the system needs\n\
-a better consistency algorithm than this program uses.\n\
-.TP\n\
-.BI \\-d \" delay\"\n\
-sets a rough limit on the total running time to\n\
-.I delay\n\
-seconds.  Acceptable values are from 1 to 3600, and the default is 15 if a NTP\n\
-host is specified and 300 otherwise.\n\
-.TP\n\
-.BI \\-x \" separation\"\n\
-causes the program to run as a daemon (i.e. forever), and to estimate and \n\
-correct for the clock drift.\n\
-.I separation\n\
-sets the minimum time between calls to the server in minutes if a NTP host is\n\
-specified, and between broadcast packets if not.  Acceptable values are from 1\n\
-to 1440 (a day), and the default (if\n\
-.B \\-x\n\
-is specified but\n\
-.I separation\n\
-is omitted) is 300.\n\
-.TP\n\
-.BI \\-f \" savefile\"\n\
-may be used with the\n\
-.B \\-x\n\
-option to store a record of previous packets, which speeds up recalculating\n\
-the drift after\n\
-.I sntp\n\
-has to be restarted (e.g. because of network or server outages).  In order to\n\
-restart the data,\n\
-.I sntp\n\
-must be restarted reasonably soon after it died (within a few times the value of\n\
-.IR separation ),\n\
-with the same value of the\n\
-.B \\-c\n\
-option, the same value of\n\
-.IR separation ,\n\
-in the same mode (i.e. broadcast or client), though the NTP servers need not\n\
-be the same for client mode, and with compatible values of other settings.\n\
-Note that the file will be created with the default ownerships and permissions,\n\
-using standard C facilities.  The default is installation-dependent, but will\n\
-usually be\n\
-.IR /etc/sntp.state .\n\
-.TP\n\
-.B -4\n\
-force IPv4 DNS resolution.\n\
-.TP\n\
-.B -6\n\
-force IPv6 DNS resolution.\n\
-.PP\n\
-.B address(es)\n\
-are the DNS names or IP numbers of hosts to use for the challenge and response\n\
-protocol; if no names are given, the program waits for broadcasts.  Polling a\n\
-server is vastly more reliable than listening to broadcasts.  Note that a\n\
-single component numeric address is not allowed, to avoid ambiguities.  If\n\
-more than one name is give, they will be used in a round-robin fashion.\n\
-.PP\n\
-Constraints:\n\
-.IP\n\
-.B minerr\n\
-must be less than\n\
-.B maxerr\n\
-which must be less than\n\
-.B delay\n\
-(or, if a NTP host is not specified\n\
-.BR delay / count \"),\"\n\
-and\n\
-.B count\n\
-must be less than half of\n\
-.BR delay .\n\
-.IP\n\
-In update mode,\n\
-.B maxerr\n\
-must be less than\n\
-.BR prompt.\n\
-.IP\n\
-In daemon mode (i.e. when\n\
-.B \\-x\n\
-is specified),\n\
-.B minerr\n\
-must be less than\n\
-.B maxerr\n\
-which must be less than\n\
-.B separation\n\
-(note that this is in minutes, not seconds, but the numeric value is compared).\n\
-.PP\n\
-Note that none of the above values are closely linked to the limits described\n\
-in the NTP protocol (RFC 1305).\n\
-.SH USAGE\n\
-The simplest use of this program is as an unprivileged command to check the\n\
-current time and error in the local clock.  For example:\n\
-.IP\n\
-.B sntp ntpserver.somewhere\n\
-.PP\n\
-It can be run as a unprivileged background process to check on the clock drift\n\
-as well as the current error; this will probably fail if the local clock is\n\
-reset while it is running.  For example:\n\
-.IP\n\
-.B sntp -x ntpserver.somewhere > output 2>\\&1 \\&\n\
-.PP\n\
-With suitable privilege, it can be run as a command or in a\n\
-.I cron\n\
-job to reset the local clock from a reliable server, like the\n\
-.I ntpdate\n\
-and\n\
-.I rdate\n\
-commands.  For example:\n\
-.IP\n\
-.B sntp -a ntpserver.somewhere\n\
-.PP\n\
-It can also be run as a daemon to keep the local clock in step.  For example:\n\
-.IP\n\
-.B sntp -a -x ntpserver.somewhere > output 2>\\&1 \\&\n\
-.PP\n\
-More information on how to use this utility is given in the\n\
-.I README\n\
-file in the distribution.  In particular, this\n\
-.I man\n\
-page does not describe how to set it up as a server, which needs special care\n\
-to avoid propagating misinformation.\n\
-.SH RETURN VALUE\n\
-When used as a client in non-daemon mode, the program returns a zero exit\n\
-status for success, and a non-zero one otherwise. When used as a daemon\n\
-(either client or server), it does not return except after a serious error.\n\
-.SH BUGS\n\
-The program implements the SNTP protocol, and does not provide all NTP \n\
-facilities.  In particular, it contains no checks against any form of spoofing.\n\
-If this is a serious concern, some network security mechanism (like a firewall\n\
-or even just\n\
-.IR tcpwrappers )\n\
-should be installed.\n\
-.PP\n\
-There are some errors, ambiguities and inconsistencies in the RFCs, and this\n\
-code may not interwork with all other NTP implementations.  Any unreasonable\n\
-restrictions should be reported as bugs to whoever is responsible.  It may\n\
-be difficult to find out who that is.\n\
-.PP\n\
-The program will stop as soon as it feels that things have got out of control.\n\
-In client daemon mode, it will usually fail during an extended period of\n\
-network or server inaccessibility or excessively slow performance, or when the\n\
-local clock is reset by another process.  It will then need restarting\n\
-manually.  Experienced system administrators can write a shell script, a\n\
-.I cron\n\
-job or put it in\n\
-.IR inittab ,\n\
-to do this automatically.\n\
-.PP\n\
-The error cannot be estimated reliably with broadcast packets or for the drift\n\
-in daemon mode (even with client-server packets), and the guess made by the\n\
-program may be wrong (possibly even very wrong).  If this is a problem, then\n\
-setting the\n\
-.B \\-c\n\
-option to a larger value may help.  Or it may not.\n\
-.SH AUTHOR\n\
-.I sntp\n\
-was developed by N.M. Maclaren of the University of Cambridge Computing\n\
-Service.\n";
+job.\n\
+NTP is the Network Time Protocol (RFC 1305) and SNTP is the\n\
+Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).\n";
 tSCC    zFullVersion[] = SNTP_FULL_VERSION;
-/* extracted from optcode near line 321 */
+/* extracted from optcode near line 368 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -660,14 +432,18 @@ main( int argc, char** argv )
     return res;
 }
 #endif  /* defined TEST_SNTP_OPTS */
-/* extracted from optcode near line 418 */
+/* extracted from optcode near line 465 */
 
 #if ENABLE_NLS
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
+static char* AO_gettext( const char* pz );
+static void  coerce_it(void** s);
+
 static char*
 AO_gettext( const char* pz )
 {
@@ -685,6 +461,10 @@ AO_gettext( const char* pz )
     return pzRes;
 }
 
+static void coerce_it(void** s) { *s = AO_gettext(*s); }
+#define COERSION(_f) \
+  coerce_it((void*)&(sntpOptions._f))
+
 /*
  *  This invokes the translation code (e.g. gettext(3)).
  */
@@ -727,12 +507,12 @@ translate_option_strings( void )
             pOD++;
         }
     }
-    sntpOptions.pzCopyright   = AO_gettext(sntpOptions.pzCopyright);
-    sntpOptions.pzCopyNotice  = AO_gettext(sntpOptions.pzCopyNotice);
-    sntpOptions.pzFullVersion = AO_gettext(sntpOptions.pzFullVersion);
-    sntpOptions.pzUsageTitle  = AO_gettext(sntpOptions.pzUsageTitle);
-    sntpOptions.pzExplain     = AO_gettext(sntpOptions.pzExplain);
-    sntpOptions.pzDetail      = AO_gettext(sntpOptions.pzDetail);
+    COERSION(pzCopyright);
+    COERSION(pzCopyNotice);
+    COERSION(pzFullVersion);
+    COERSION(pzUsageTitle);
+    COERSION(pzExplain);
+    COERSION(pzDetail);
 }
 
 #endif /* ENABLE_NLS */
index 5f4e88a6a0cae16708325999118559b78664c51a..09fd4dca513d80e145150f4b52e408a1b75c9ee3 100644 (file)
@@ -2,10 +2,26 @@
  *  
  *  DO NOT EDIT THIS FILE   (sntp-opts.h)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:53 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:11 PM EDT
  *  From the definitions    sntp-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This header file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  sntp author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * sntp copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * See the sntp/Copyright file
+ */
 /*
  *  This file contains the programmatic interface to the Automated
  *  Options generated for the sntp program.
  */
 #ifndef AUTOOPTS_SNTP_OPTS_H_GUARD
 #define AUTOOPTS_SNTP_OPTS_H_GUARD
-
-/*
- * sntp copyright 1970-2006 ntp.org - all rights reserved
- *
- * See the sntp/Copyright file
- */
 #include "config.h"
 #include <autoopts/options.h>
 
@@ -34,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -55,8 +66,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    12
-#define SNTP_VERSION       "4.2.3p12"
-#define SNTP_FULL_VERSION  "sntp - standard SNTP program - Ver. 4.2.3p12"
+#define SNTP_VERSION       "4.2.3p23"
+#define SNTP_FULL_VERSION  "sntp - standard SNTP program - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -111,7 +122,7 @@ typedef enum {
                 sntpOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*sntpOptions.pUsageProc)( &sntpOptions, c )
-/* extracted from opthead near line 289 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index d1c69740543b711454eadbf8793c5172f6ca04eb..54ee595c61e827989dff6e74f9394ba28058a1c0 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (sntp-opts.texi)
 # 
-# It has been AutoGen-ed  Tuesday June 27, 2006 at 10:37:30 PM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:13 PM EDT
 # From the definitions    sntp-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -16,255 +16,11 @@ This program has no explanation.
 .I sntp
 can be used as a SNTP client to query a NTP or SNTP server and either display
 the time or set the local system's time (given suitable privilege).  It can be
-run as an interactive command, in a
+run as an interactive command or in a
 .I cron
-job or as a daemon.  It can be run as a daemon to provide a SNTP server for
-other clients.  NTP is the Network Time Protocol (RFC 1305) and SNTP is the
+job.
+NTP is the Network Time Protocol (RFC 1305) and SNTP is the
 Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).
-.SS Options
-.PP
-.I sntp
-recognizes the following options:
-.TP
-.B \-v
-indicates that diagnostic messages for non-fatal errors and a limited amount of
-tracing should be written to standard error.  Fatal ones always produce a
-diagnostic.  This option should be set when there is a suspected problem with
-the server, network or the source.
-.TP
-.B \-V
-requests more and less comprehensible output, mainly for investigating problems
-with apparently inconsistent timestamps.  This option should be set when the
-program fails with a message indicating that is the trouble.
-.TP
-.B \-W
-requests very verbose debugging output, and will interfere with the timing
-when writing to the terminal (because of line buffered output from C).  Note
-that the times produced by this are the corrections needed, and not the error
-in the local clock.  This option should be set only when debugging the source.
-.TP
-.B \-q
-indicates that it should query a daemon save file being maintained by it.
-This needs no privilege and will change neither the save file nor the clock.
-.PP
-The default is that it should behave as a client, and the following options
-are then relevant:
-.TP
-.B \-r
-indicates that the system clock should be reset by
-.IR settimeofday .
-Naturally, this will work only if the user has enough privilege.
-.TP
-.B \-a
-indicates that the system clock should be reset by
-.IR adjtime .
-Naturally, this will work only if the user has enough privilege.
-.PP
-The default is to write the estimated correct local date and time (i.e. not
-UTC) to the standard output in a format like
-.BR "'1996 Oct 15 20:17:25.123 + 4.567 +/- 0.089 secs'" ,
-where the
-.B "'+ 4.567 +/- 0.089 secs'"
-indicates the estimated error in the time on the local system.  In daemon mode,
-it will add drift information in a format like
-.BR "' + 1.3 +/- 0.1 ppm'" ,
-and display this at roughly
-.I separation
-intervals (see under the
-.B \-x
-option for details).
-.TP
-.BI \-l " lockfile"
-sets the name of the lock file to ensure that there is only
-one copy of
-.I sntp
-running at once.  The default is installation-dependent, but will usually be
-.IR /etc/sntp.pid .
-.TP
-.BI \-e " minerr"
-sets the maximum ignorable variation between the clocks to
-.IR minerr .
-Acceptable values are from 0.001 to 1, and the default is 0.1 if a NTP host is
-is specified and 0.5 otherwise.
-.TP
-.BI \-E " maxerr"
-sets the maximum value of various delays that are deemed acceptable to
-.IR maxerr .
-Acceptable values are from 1 to 60, and the default is 5.  It should sometimes
-be increased if there are problems with the network, NTP server or system
-clock, but take care.
-.TP
-.BI \-P  " prompt"
-sets the maximum clock change that will be made automatically to
-.IR maxerr .
-Acceptable values are from 1 to 3600 or
-.IR no ,
-and the default is 30.  If the program is being run interactively in ordinary
-client mode, and the system clock is to be changed, larger corrections will
-prompt the user for confirmation.  Specifying
-.I no
-will disable this and the correction will be made regardless.
-.TP
-.BI \-c " count"
-sets the maximum number of NTP packets required to
-.IR count .
-Acceptable values are from 1 to 25 if a NTP host is specified and from 5 to 25
-otherwise, and the default is 5.  If the maximum isn't enough, the system needs
-a better consistency algorithm than this program uses.
-.TP
-.BI \-d " delay"
-sets a rough limit on the total running time to
-.I delay
-seconds.  Acceptable values are from 1 to 3600, and the default is 15 if a NTP
-host is specified and 300 otherwise.
-.TP
-.BI \-x " separation"
-causes the program to run as a daemon (i.e. forever), and to estimate and 
-correct for the clock drift.
-.I separation
-sets the minimum time between calls to the server in minutes if a NTP host is
-specified, and between broadcast packets if not.  Acceptable values are from 1
-to 1440 (a day), and the default (if
-.B \-x
-is specified but
-.I separation
-is omitted) is 300.
-.TP
-.BI \-f " savefile"
-may be used with the
-.B \-x
-option to store a record of previous packets, which speeds up recalculating
-the drift after
-.I sntp
-has to be restarted (e.g. because of network or server outages).  In order to
-restart the data,
-.I sntp
-must be restarted reasonably soon after it died (within a few times the value of
-.IR separation ),
-with the same value of the
-.B \-c
-option, the same value of
-.IR separation ,
-in the same mode (i.e. broadcast or client), though the NTP servers need not
-be the same for client mode, and with compatible values of other settings.
-Note that the file will be created with the default ownerships and permissions,
-using standard C facilities.  The default is installation-dependent, but will
-usually be
-.IR /etc/sntp.state .
-.TP
-.B -4
-force IPv4 DNS resolution.
-.TP
-.B -6
-force IPv6 DNS resolution.
-.PP
-.B address(es)
-are the DNS names or IP numbers of hosts to use for the challenge and response
-protocol; if no names are given, the program waits for broadcasts.  Polling a
-server is vastly more reliable than listening to broadcasts.  Note that a
-single component numeric address is not allowed, to avoid ambiguities.  If
-more than one name is give, they will be used in a round-robin fashion.
-.PP
-Constraints:
-.IP
-.B minerr
-must be less than
-.B maxerr
-which must be less than
-.B delay
-(or, if a NTP host is not specified
-.BR delay / count "),"
-and
-.B count
-must be less than half of
-.BR delay .
-.IP
-In update mode,
-.B maxerr
-must be less than
-.BR prompt.
-.IP
-In daemon mode (i.e. when
-.B \-x
-is specified),
-.B minerr
-must be less than
-.B maxerr
-which must be less than
-.B separation
-(note that this is in minutes, not seconds, but the numeric value is compared).
-.PP
-Note that none of the above values are closely linked to the limits described
-in the NTP protocol (RFC 1305).
-.SH USAGE
-The simplest use of this program is as an unprivileged command to check the
-current time and error in the local clock.  For example:
-.IP
-.B sntp ntpserver.somewhere
-.PP
-It can be run as a unprivileged background process to check on the clock drift
-as well as the current error; this will probably fail if the local clock is
-reset while it is running.  For example:
-.IP
-.B sntp -x ntpserver.somewhere > output 2>\&1 \&
-.PP
-With suitable privilege, it can be run as a command or in a
-.I cron
-job to reset the local clock from a reliable server, like the
-.I ntpdate
-and
-.I rdate
-commands.  For example:
-.IP
-.B sntp -a ntpserver.somewhere
-.PP
-It can also be run as a daemon to keep the local clock in step.  For example:
-.IP
-.B sntp -a -x ntpserver.somewhere > output 2>\&1 \&
-.PP
-More information on how to use this utility is given in the
-.I README
-file in the distribution.  In particular, this
-.I man
-page does not describe how to set it up as a server, which needs special care
-to avoid propagating misinformation.
-.SH RETURN VALUE
-When used as a client in non-daemon mode, the program returns a zero exit
-status for success, and a non-zero one otherwise. When used as a daemon
-(either client or server), it does not return except after a serious error.
-.SH BUGS
-The program implements the SNTP protocol, and does not provide all NTP 
-facilities.  In particular, it contains no checks against any form of spoofing.
-If this is a serious concern, some network security mechanism (like a firewall
-or even just
-.IR tcpwrappers )
-should be installed.
-.PP
-There are some errors, ambiguities and inconsistencies in the RFCs, and this
-code may not interwork with all other NTP implementations.  Any unreasonable
-restrictions should be reported as bugs to whoever is responsible.  It may
-be difficult to find out who that is.
-.PP
-The program will stop as soon as it feels that things have got out of control.
-In client daemon mode, it will usually fail during an extended period of
-network or server inaccessibility or excessively slow performance, or when the
-local clock is reset by another process.  It will then need restarting
-manually.  Experienced system administrators can write a shell script, a
-.I cron
-job or put it in
-.IR inittab ,
-to do this automatically.
-.PP
-The error cannot be estimated reliably with broadcast packets or for the drift
-in daemon mode (even with client-server packets), and the guess made by the
-program may be wrong (possibly even very wrong).  If this is a problem, then
-setting the
-.B \-c
-option to a larger value may help.  Or it may not.
-.SH AUTHOR
-.I sntp
-was developed by N.M. Maclaren of the University of Cambridge Computing
-Service.
 
 This section was generated by @strong{AutoGen},
 the aginfo template and the option descriptions for the @command{sntp} program.  It documents the sntp usage text and option meanings.
index d24e876129944853e68d4af946c729b08064f559..9fa0db1bcb17073933e6028b99dcd0e87e7351df 100644 (file)
@@ -2,10 +2,28 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntp-keygen-opts.c)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:55 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:21 PM EDT
  *  From the definitions    ntp-keygen-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This source file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntp-keygen author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntp-keygen copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
+
+
 #include <stdio.h>
 #include <limits.h>
 #define OPTION_CODE_COMPILE 1
@@ -18,7 +36,7 @@ tSCC zCopyright[] =
        "ntp-keygen copyright (c) 1970-2006 ntp.org, all rights reserved";
 tSCC zCopyrightNotice[] =
        
-/* extracted from /backroom/ntp-dev-hms/include/copyright.def near line 8 */
+/* extracted from ../include/copyright.def near line 8 */
 "see html/copyright.html";
 extern tUsageProc optionUsage;
 
@@ -392,17 +410,21 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
 /*
  *  Declare option callback procedures
  */
-#ifndef OPENSSL
-#define doOptModulus doUsageOpt
-#endif
-#ifndef OPENSSL
-#define optionNumericVal doUsageOpt
-#endif
-#ifndef OPENSSL
-#define optionNumericVal doUsageOpt
-#endif
-/* extracted from optmain.tpl near line 586 */
-
+#ifdef OPENSSL
+  static tOptProc doOptModulus;
+#else /* not OPENSSL */
+# define doOptModulus NULL
+#endif /* def/not OPENSSL */
+#ifdef OPENSSL
+  extern tOptProc optionNumericVal;
+#else /* not OPENSSL */
+# define optionNumericVal NULL
+#endif /* def/not OPENSSL */
+#ifdef OPENSSL
+  extern tOptProc optionNumericVal;
+#else /* not OPENSSL */
+# define optionNumericVal NULL
+#endif /* def/not OPENSSL */
 #if defined(TEST_NTP_KEYGEN_OPTS)
 /*
  *  Under test, omit argument processing, or call optionStackArg,
@@ -424,9 +446,9 @@ static tOptProc
  *  When not under test, there are different procs to use
  */
 extern tOptProc
-    optionNumericVal, optionPagedUsage, optionPrintVersion;
+    optionPagedUsage, optionPrintVersion;
 static tOptProc
-    doOptModulus, doOptSet_Debug_Level, doUsageOpt;
+    doOptSet_Debug_Level, doUsageOpt;
 
 /*
  *  #define map the "normal" callout procs
@@ -435,18 +457,6 @@ static tOptProc
 
 #define SET_DEBUG_LEVEL_OPT_PROC doOptSet_Debug_Level
 #endif /* defined(TEST_NTP_KEYGEN_OPTS) */
-#ifndef OPENSSL
-#undef  doOptModulus
-#define doOptModulus NULL
-#endif
-#ifndef OPENSSL
-#undef  optionNumericVal
-#define optionNumericVal NULL
-#endif
-#ifndef OPENSSL
-#undef  optionNumericVal
-#define optionNumericVal NULL
-#endif
 #ifdef TEST_NTP_KEYGEN_OPTS
 # define DOVERPROC optionVersionStderr
 #else
@@ -756,7 +766,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTP_KEYGEN";
 tSCC   zUsageTitle[] =
-"ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p12\n\
+"ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p23\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
@@ -770,7 +780,7 @@ tSCC    zDetail[]     = "\n\
 If there is no new host key, look for an existing one.\n\
 If one is not found, create it.\n";
 tSCC    zFullVersion[] = NTP_KEYGEN_FULL_VERSION;
-/* extracted from optcode near line 321 */
+/* extracted from optcode near line 368 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -907,14 +917,18 @@ main( int argc, char** argv )
     return res;
 }
 #endif  /* defined TEST_NTP_KEYGEN_OPTS */
-/* extracted from optcode near line 418 */
+/* extracted from optcode near line 465 */
 
 #if ENABLE_NLS
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
+static char* AO_gettext( const char* pz );
+static void  coerce_it(void** s);
+
 static char*
 AO_gettext( const char* pz )
 {
@@ -932,6 +946,10 @@ AO_gettext( const char* pz )
     return pzRes;
 }
 
+static void coerce_it(void** s) { *s = AO_gettext(*s); }
+#define COERSION(_f) \
+  coerce_it((void*)&(ntp_keygenOptions._f))
+
 /*
  *  This invokes the translation code (e.g. gettext(3)).
  */
@@ -974,12 +992,12 @@ translate_option_strings( void )
             pOD++;
         }
     }
-    ntp_keygenOptions.pzCopyright   = AO_gettext(ntp_keygenOptions.pzCopyright);
-    ntp_keygenOptions.pzCopyNotice  = AO_gettext(ntp_keygenOptions.pzCopyNotice);
-    ntp_keygenOptions.pzFullVersion = AO_gettext(ntp_keygenOptions.pzFullVersion);
-    ntp_keygenOptions.pzUsageTitle  = AO_gettext(ntp_keygenOptions.pzUsageTitle);
-    ntp_keygenOptions.pzExplain     = AO_gettext(ntp_keygenOptions.pzExplain);
-    ntp_keygenOptions.pzDetail      = AO_gettext(ntp_keygenOptions.pzDetail);
+    COERSION(pzCopyright);
+    COERSION(pzCopyNotice);
+    COERSION(pzFullVersion);
+    COERSION(pzUsageTitle);
+    COERSION(pzExplain);
+    COERSION(pzDetail);
 }
 
 #endif /* ENABLE_NLS */
index 76d5c50803cdfb40b9de720e9103c0097cbbea3c..22c3257c9a7b3fa075b3352ce6731eccb2cc4938 100644 (file)
@@ -2,10 +2,26 @@
  *  
  *  DO NOT EDIT THIS FILE   (ntp-keygen-opts.h)
  *  
- *  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:16:55 PM EDT
+ *  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:20 PM EDT
  *  From the definitions    ntp-keygen-opts.def
  *  and the template file   options
  */
+
+/*
+ *  This file was produced by an AutoOpts template.  AutoOpts is a
+ *  copyrighted work.  This header file is not encumbered by AutoOpts
+ *  licensing, but is provided under the licensing terms chosen by the
+ *  ntp-keygen author or copyright holder.  AutoOpts is licensed under
+ *  the terms of the LGPL.  The redistributable library (``libopts'') is
+ *  licensed under the terms of either the LGPL or, at the users discretion,
+ *  the BSD license.  See the AutoOpts and/or libopts sources for details.
+ *
+ * This source file is copyrighted and licensed under the following terms:
+ *
+ * ntp-keygen copyright 1970-2006 ntp.org - all rights reserved
+ *
+ * see html/copyright.html
+ */
 /*
  *  This file contains the programmatic interface to the Automated
  *  Options generated for the ntp-keygen program.
  */
 #ifndef AUTOOPTS_NTP_KEYGEN_OPTS_H_GUARD
 #define AUTOOPTS_NTP_KEYGEN_OPTS_H_GUARD
-
-/*
- * ntp-keygen copyright 1970-2006 ntp.org - all rights reserved
- *
- * see html/copyright.html
- */
 #include "config.h"
 #include <autoopts/options.h>
 
@@ -34,6 +44,7 @@
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
+  Choke Me.
 #endif
 
 /*
@@ -67,8 +78,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    24
-#define NTP_KEYGEN_VERSION       "4.2.3p12"
-#define NTP_KEYGEN_FULL_VERSION  "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p12"
+#define NTP_KEYGEN_VERSION       "4.2.3p23"
+#define NTP_KEYGEN_FULL_VERSION  "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p23"
 
 /*
  *  Interface defines for all options.  Replace "n" with
@@ -168,7 +179,7 @@ typedef enum {
                 ntp_keygenOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*ntp_keygenOptions.pUsageProc)( &ntp_keygenOptions, c )
-/* extracted from opthead near line 289 */
+/* extracted from opthead near line 288 */
 
 /* * * * * *
  *
index fb729389b237683cbb18c49bac74925af487d941..471c6f770f157efb588f3271557ec972d1ef246f 100644 (file)
@@ -7,7 +7,7 @@
 # 
 # DO NOT EDIT THIS FILE   (ntp-keygen-opts.texi)
 # 
-# It has been AutoGen-ed  Tuesday June 27, 2006 at 10:37:44 PM EDT
+# It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:23 PM EDT
 # From the definitions    ntp-keygen-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -53,7 +53,7 @@ This is the automatically generated usage text for ntp-keygen:
 @exampleindent 0
 @example
 Using OpenSSL version 90704f
-ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p10
+ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.3p12
 USAGE:  ntp-keygen [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
   Flg Arg Option-Name    Description
    -c Str certificate    certificate scheme
@@ -91,7 +91,7 @@ or by a single hyphen and the flag character.
 
 The following option preset mechanisms are supported:
  - reading file /users/stenn/.ntprc
- - reading file /deacon/backroom/ntp-dev-hms/util/.ntprc
+ - reading file /deacon/backroom/ntp-dev/util/.ntprc
  - examining environment variables named NTP_KEYGEN_*
 
 If there is no new host key, look for an existing one.
index 7b0fe298ea8ce2b5021dc59a170dc9fe803406c4..e4f0fc680e5db1c146fdad273a70154aa2fb1ca2 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTP-KEYGEN 1 2006-06-27 "" "Programmer's Manual"
+.TH NTP-KEYGEN 1 2006-08-02 "(ntp 4.2.3p23)" "Programmer's Manual"
 .\"  DO NOT EDIT THIS FILE   (ntp-keygen.1)
 .\"  
-.\"  It has been AutoGen-ed  Tuesday June 27, 2006 at 10:37:44 PM EDT
+.\"  It has been AutoGen-ed  Wednesday August  2, 2006 at 08:17:22 PM EDT
 .\"  From the definitions    ntp-keygen-opts.def
 .\"  and the template file   agman1.tpl
 .\"
@@ -10,7 +10,7 @@ ntp-keygen \- Create a NTP host key
 .SH SYNOPSIS
 .B ntp-keygen
 .\" Mixture of short (flag) options and long options
-.RB [ -\fIflag\fP " [\fIvalue\fP]]... [" --\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
+.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
 .PP
 All arguments must be options.
 .SH "DESCRIPTION"
@@ -19,60 +19,60 @@ If there is no new host key, look for an existing one.
 If one is not found, create it.
 .SH OPTIONS
 .TP
-.BR -c " \fIscheme\fP, " --certificate "=" \fIscheme\fP
+.BR \-c " \fIscheme\fP, " \--certificate "=" \fIscheme\fP
 certificate scheme.
 .sp
 Just some descriptive text.
 .TP
-.BR -d ", " --debug-level
+.BR \-d ", " \--debug-level
 Increase output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Increase the debugging message output level.
 .TP
-.BR -D " \fIstring\fP, " --set-debug-level "=" \fIstring\fP
+.BR \-D " \fIstring\fP, " \--set-debug-level "=" \fIstring\fP
 Set the output debug message level.
 This option may appear an unlimited number of times.
 .sp
 Set the output debugging level.  Can be supplied multiple times,
 but each overrides the previous value(s).
 .TP
-.BR -e ", " --id-key
+.BR \-e ", " \--id-key
 Write identity keys.
 .sp
 Just some descriptive text.
 .TP
-.BR -G ", " --gq-params
+.BR \-G ", " \--gq-params
 Generate GQ parameters and keys.
 .sp
 Just some descriptive text.
 .TP
-.BR -g ", " --gq-keys
+.BR \-g ", " \--gq-keys
 update GQ keys.
 .sp
 Just some descriptive text.
 .TP
-.BR -H ", " --host-key
+.BR \-H ", " \--host-key
 generate RSA host key.
 .sp
 Just some descriptive text.
 .TP
-.BR -I ", " --iffkey
+.BR \-I ", " \--iffkey
 generate IFF parameters.
 .sp
 Just some descriptive text.
 .TP
-.BR -i ", " --issuer-name
+.BR \-i ", " \--issuer-name
 set issuer name.
 .sp
 Just some descriptive text.
 .TP
-.BR -M ", " --md5key
+.BR \-M ", " \--md5key
 generate MD5 keys.
 .sp
 Just some descriptive text.
 .TP
-.BR -m " \fImodulus\fP, " --modulus "=" \fImodulus\fP
+.BR \-m " \fImodulus\fP, " \--modulus "=" \fImodulus\fP
 modulus.
 This option takes an integer number as its argument.
 The value of \fImodulus\fP is constrained to being:
@@ -85,43 +85,43 @@ in the range  256 through 2048
 .sp
 Just some descriptive text.
 .TP
-.BR -P ", " --pvt-cert
+.BR \-P ", " \--pvt-cert
 generate PC private certificate.
 .sp
 Just some descriptive text.
 .TP
-.BR -p " \fIpasswd\fP, " --pvt-passwd "=" \fIpasswd\fP
+.BR \-p " \fIpasswd\fP, " \--pvt-passwd "=" \fIpasswd\fP
 output private password.
 .sp
 Just some descriptive text.
 .TP
-.BR -q " \fIpasswd\fP, " --get-pvt-passwd "=" \fIpasswd\fP
+.BR \-q " \fIpasswd\fP, " \--get-pvt-passwd "=" \fIpasswd\fP
 input private password.
 .sp
 Just some descriptive text.
 .TP
-.BR -S " \fIsign\fP, " --sign-key "=" \fIsign\fP
+.BR \-S " \fIsign\fP, " \--sign-key "=" \fIsign\fP
 generate sign key (RSA or DSA).
 .sp
 Just some descriptive text.
 .TP
-.BR -s " \fIhost\fP, " --subject-name "=" \fIhost\fP
+.BR \-s " \fIhost\fP, " \--subject-name "=" \fIhost\fP
 set subject name.
 .sp
 Just some descriptive text.
 .TP
-.BR -T ", " --trusted-cert
+.BR \-T ", " \--trusted-cert
 trusted certificate (TC scheme).
 .sp
 Just some descriptive text.
 .TP
-.BR -V " \fInum\fP, " --mv-params "=" \fInum\fP
+.BR \-V " \fInum\fP, " \--mv-params "=" \fInum\fP
 generate <num> MV parameters.
 This option takes an integer number as its argument.
 .sp
 Just some descriptive text.
 .TP
-.BR -v " \fInum\fP, " --mv-keys "=" \fInum\fP
+.BR \-v " \fInum\fP, " \--mv-keys "=" \fInum\fP
 update <num> MV keys.
 This option takes an integer number as its argument.
 .sp
@@ -137,7 +137,7 @@ Extended usage information passed thru pager.
 Save the option state to \fIrcfile\fP.  The default is the \fIlast\fP
 configuration file listed in the \fBOPTION PRESETS\fP section, below.
 .TP
-.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " --no-load-opts"
+.BR \-< " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " \--no-load-opts"
 Load options from \fIrcfile\fP.
 The \fIno-load-opts\fP form will disable the loading
 of earlier RC/INI files.  \fI--no-load-opts\fP is handled early,