]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
NTP_4_2_7P89 NTP_4_2_7P89
authorHarlan Stenn <stenn@ntp.org>
Sat, 4 Dec 2010 20:54:56 +0000 (20:54 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 4 Dec 2010 20:54:56 +0000 (20:54 +0000)
bk: 4cfaaaa0lQShq5mKuHfDop-yYB9GwQ

29 files changed:
ChangeLog
clockstuff/clktest-opts.c
clockstuff/clktest-opts.h
ntpd/ntpd-opts.c
ntpd/ntpd-opts.h
ntpd/ntpd-opts.texi
ntpd/ntpd.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
ntpsnmpd/ntpsnmpd-opts.c
ntpsnmpd/ntpsnmpd-opts.h
ntpsnmpd/ntpsnmpd-opts.texi
ntpsnmpd/ntpsnmpd.1
packageinfo.sh
sntp/sntp-opts.c
sntp/sntp-opts.h
sntp/sntp-opts.texi
sntp/sntp.1
sntp/sntp.html
util/ntp-keygen-opts.c
util/ntp-keygen-opts.h
util/ntp-keygen-opts.texi
util/ntp-keygen.1

index 5ca2a9b268d592aee8e4cac4cbbf152b8db292bb..0764ab0e4a1cec4ea1af772ee482e777da245f28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+(4.2.7p89) 2010/12/04 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1736] tos int, bool options broken in 4.2.7p66.
 * from 4.2.6p3-RC12: Clean up the SNTP documentation.
 (4.2.7p88) 2010/12/02 Released by Harlan Stenn <stenn@ntp.org>
index 0bbf9b5498955e3dfa32f5ba2d96cdde0deef652..624b4a956227a567e9f3555b9410a702979963b9 100644 (file)
@@ -1,25 +1,23 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (clktest-opts.c)
  *  
- *  It has been AutoGen-ed  November 17, 2009 at 06:37:09 AM by AutoGen 5.10
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:28 AM by AutoGen 5.11.3
  *  From the definitions    clktest-opts.def
  *  and the template file   options
  *
- * Generated from AutoOpts 33:0:8 templates.
- */
-
-/*
- *  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
- *  clktest 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.
+ * Generated from AutoOpts 33:3:8 templates.
+ *
+ *  AutoOpts is a copyrighted work.  This source file is not encumbered
+ *  by AutoOpts licensing, but is provided under the licensing terms chosen
+ *  by the clktest 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:
  *
- * clktest copyright (c) 1970-2009 David L. Mills and/or others - all rights reserved
+ * clktest copyright (c) 1970-2010 David L. Mills and/or others - all rights reserved
  *
  * see html/copyright.html
  */
@@ -40,8 +38,8 @@ extern "C" {
 /* TRANSLATORS: choose the translation for option names wisely because you
                 cannot ever change your mind. */
 tSCC zCopyright[] =
-       "clktest copyright (c) 1970-2009 David L. Mills and/or others, all rights reserved"
-/* extracted from /deacon/backroom/ntp-dev/include/copyright.def near line 8 */
+       "clktest copyright (c) 1970-2010 David L. Mills and/or others, all rights reserved"
+/* extracted from ../include/copyright.def near line 8 */
 ;
 tSCC zCopyrightNotice[24] =
 "see html/copyright.html";
@@ -67,39 +65,39 @@ extern int ttflags;
 /*
  *  Speed option description:
  */
-tSCC    zSpeedText[] =
+static char const zSpeedText[] =
         "Set the rate according to the speed";
-tSCC    zSpeed_NAME[]              = "SPEED";
-tSCC    zSpeed_Name[]              = "speed";
+static char const zSpeed_NAME[]              = "SPEED";
+static char const zSpeed_Name[]              = "speed";
 #define SPEED_FLAGS       (OPTST_DISABLED \
         | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
 
 /*
  *  Debug option description:
  */
-tSCC    zDebugText[] =
+static char const zDebugText[] =
         "Turn on debugging output";
-tSCC    zDebug_NAME[]              = "DEBUG";
-tSCC    zDebug_Name[]              = "debug";
+static char const zDebug_NAME[]              = "DEBUG";
+static char const zDebug_Name[]              = "debug";
 #define DEBUG_FLAGS       (OPTST_DISABLED)
 
 /*
  *  Crmod option description:
  */
-tSCC    zCrmodText[] =
+static char const zCrmodText[] =
         "Turn on CRMOD flag";
-tSCC    zCrmod_NAME[]              = "CRMOD";
-tSCC    zCrmod_Name[]              = "crmod";
+static char const zCrmod_NAME[]              = "CRMOD";
+static char const zCrmod_Name[]              = "crmod";
 #define CRMOD_FLAGS       (OPTST_DISABLED)
 
 /*
  *  Command option description with
  *  "Must also have options" and "Incompatible options":
  */
-tSCC    zCommandText[] =
+static char const zCommandText[] =
         "";
-tSCC    zCommand_NAME[]            = "COMMAND";
-tSCC    zCommand_Name[]            = "command";
+static char const zCommand_NAME[]            = "COMMAND";
+static char const zCommand_Name[]            = "command";
 static const int
     aCommandMustList[] = {
     INDEX_OPT_TIMEOUT, NO_EQUIVALENT };
@@ -109,22 +107,22 @@ static const int
 /*
  *  Timeout option description:
  */
-tSCC    zTimeoutText[] =
+static char const zTimeoutText[] =
         "Limit wait for command completion";
-tSCC    zTimeout_NAME[]            = "TIMEOUT";
-tSCC    zTimeout_Name[]            = "timeout";
+static char const zTimeout_NAME[]            = "TIMEOUT";
+static char const zTimeout_Name[]            = "timeout";
 #define TIMEOUT_FLAGS       (OPTST_DISABLED \
         | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
 
 /*
  *  Help/More_Help/Version option descriptions:
  */
-tSCC zHelpText[]          = "Display extended usage information and exit";
-tSCC zHelp_Name[]         = "help";
+static char const zHelpText[]          = "Display extended usage information and exit";
+static char const zHelp_Name[]         = "help";
 #ifdef HAVE_WORKING_FORK
 #define OPTST_MORE_HELP_FLAGS   (OPTST_IMM | OPTST_NO_INIT)
-tSCC zMore_Help_Name[]    = "more-help";
-tSCC zMore_HelpText[]     = "Extended usage information passed thru pager";
+static char const zMore_Help_Name[]    = "more-help";
+static char const zMore_HelpText[]     = "Extended usage information passed thru pager";
 #else
 #define OPTST_MORE_HELP_FLAGS   (OPTST_OMITTED | OPTST_NO_INIT)
 #define zMore_Help_Name   NULL
@@ -137,14 +135,14 @@ tSCC zMore_HelpText[]     = "Extended usage information passed thru pager";
                                 OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT
 #endif
 
-tSCC zVersionText[]       = "Output version information and exit";
-tSCC zVersion_Name[]      = "version";
-tSCC zSave_OptsText[]     = "Save the option state to a config file";
-tSCC zSave_Opts_Name[]    = "save-opts";
-tSCC zLoad_OptsText[]     = "Load options from a config file";
-tSCC zLoad_Opts_NAME[]    = "LOAD_OPTS";
-tSCC zNotLoad_Opts_Name[] = "no-load-opts";
-tSCC zNotLoad_Opts_Pfx[]  = "no";
+static char const zVersionText[]       = "Output version information and exit";
+static char const zVersion_Name[]      = "version";
+static char const zSave_OptsText[]     = "Save the option state to a config file";
+static char const zSave_Opts_Name[]    = "save-opts";
+static char const zLoad_OptsText[]     = "Load options from a config file";
+static char const zLoad_Opts_NAME[]    = "LOAD_OPTS";
+static char const zNotLoad_Opts_Name[] = "no-load-opts";
+static char const zNotLoad_Opts_Pfx[]  = "no";
 #define zLoad_Opts_Name   (zNotLoad_Opts_Name + 3)
 /*
  *  Declare option callback procedures
@@ -154,8 +152,6 @@ tSCC zNotLoad_Opts_Pfx[]  = "no";
  *  Under test, omit argument processing, or call optionStackArg,
  *  if multiple copies are allowed.
  */
-extern tOptProc
-    optionPagedUsage, optionVersionStderr;
 static tOptProc
     doOptTimeout, doUsageOpt;
 
@@ -171,7 +167,10 @@ static tOptProc
  *  When not under test, there are different procs to use
  */
 extern tOptProc
-    optionPagedUsage, optionPrintVersion;
+    optionBooleanVal,    optionNestedVal,     optionNumericVal,
+    optionPagedUsage,    optionPrintVersion,  optionResetOpt,
+    optionStackArg,      optionTimeVal,       optionUnstackArg,
+    optionVersionStderr;
 static tOptProc
     doOptCrmod, doOptSpeed, doOptTimeout, doUsageOpt;
 
@@ -326,7 +325,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "CLKTEST";
 tSCC   zUsageTitle[] =
-"clktest - test the clock line discipline - Ver. 4.2.5p245-RC\n\
+"clktest - test the clock line discipline - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... <tty_device>\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
@@ -341,7 +340,7 @@ Clktest can be used to test the clock line discipline (CLKLDISC,\n\
 it must be available), and to take a look at radio clocks attached\n\
 to a serial port.\n";
 tSCC    zFullVersion[] = CLKTEST_FULL_VERSION;
-/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */
+/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 493 */
 
 #if defined(ENABLE_NLS)
 # define OPTPROC_BASE OPTPROC_TRANSLATE
@@ -363,7 +362,8 @@ tOptions clktestOptions = {
     + OPTPROC_LONGOPT
     + OPTPROC_NO_REQ_OPT
     + OPTPROC_ENVIRON
-    + OPTPROC_ARGS_REQ ),
+    + OPTPROC_ARGS_REQ
+    + OPTPROC_MISUSE ),
     0, NULL,                    /* current option index, current option */
     NULL,         NULL,         zPROGNAME,
     zRcName,      zCopyright,   zCopyrightNotice,
@@ -395,7 +395,7 @@ doUsageOpt(
     tOptDesc*   pOptDesc )
 {
     (void)pOptions;
-    USAGE( EXIT_SUCCESS );
+    USAGE(EXIT_SUCCESS);
 }
 
 #if ! defined(TEST_CLKTEST_OPTS)
@@ -407,7 +407,7 @@ doUsageOpt(
 static void
 doOptSpeed(tOptions* pOptions, tOptDesc* pOptDesc)
 {
-    /* extracted from clktest-opts.def, line 130 */
+    /* extracted from clktest-opts.def, line 98 */
     /*
      * speed table
      */
@@ -456,7 +456,7 @@ doOptSpeed(tOptions* pOptions, tOptDesc* pOptDesc)
 static void
 doOptCrmod(tOptions* pOptions, tOptDesc* pOptDesc)
 {
-    /* extracted from clktest-opts.def, line 184 */
+    /* extracted from clktest-opts.def, line 152 */
     ttflags |= CRMOD;
 }
 #endif /* defined(TEST_CLKTEST_OPTS) */
@@ -510,22 +510,25 @@ doOptTimeout(tOptions* pOptions, tOptDesc* pOptDesc)
     }
     pOptDesc->optArg.argInt = val;
 }
-/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */
+/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 107 */
 
 #if defined(TEST_CLKTEST_OPTS) /* TEST MAIN PROCEDURE: */
 
-extern void optionPutShell( tOptions* );
+extern void optionPutShell(tOptions*);
 
 int
 main(int argc, char** argv)
 {
     int res = EXIT_SUCCESS;
-    (void)optionProcess( &clktestOptions, argc, argv );
-    optionPutShell( &clktestOptions );
+    (void)optionProcess(&clktestOptions, argc, argv);
+    optionPutShell(&clktestOptions);
+    res = ferror(stdout);
+    if (res != 0)
+        fputs("output error writing to stdout\n", stderr);
     return res;
 }
 #endif  /* defined TEST_CLKTEST_OPTS */
-/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */
+/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 626 */
 
 #if ENABLE_NLS
 #include <stdio.h>
@@ -534,11 +537,11 @@ main(int argc, char** argv)
 #include <unistd.h>
 #include <autoopts/usage-txt.h>
 
-static char* AO_gettext( char const* pz );
+static char* AO_gettext(char const* pz);
 static void  coerce_it(void** s);
 
 static char*
-AO_gettext( char const* pz )
+AO_gettext(char const* pz)
 {
     char* pzRes;
     if (pz == NULL)
@@ -546,10 +549,10 @@ AO_gettext( char const* pz )
     pzRes = _(pz);
     if (pzRes == pz)
         return pzRes;
-    pzRes = strdup( pzRes );
+    pzRes = strdup(pzRes);
     if (pzRes == NULL) {
-        fputs( _("No memory for duping translated strings\n"), stderr );
-        exit( EXIT_FAILURE );
+        fputs(_("No memory for duping translated strings\n"), stderr);
+        exit(EXIT_FAILURE);
     }
     return pzRes;
 }
@@ -562,7 +565,7 @@ static void coerce_it(void** s) { *s = AO_gettext(*s); }
  *  This invokes the translation code (e.g. gettext(3)).
  */
 static void
-translate_option_strings( void )
+translate_option_strings(void)
 {
     /*
      *  Guard against re-translation.  It won't work.  The strings will have
index a2ae555c3c0f467782f6bb5bd84634c3d98febe1..e0346638c275c9604bccf4cdf59e05eb56e0f0d2 100644 (file)
@@ -1,25 +1,23 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (clktest-opts.h)
  *  
- *  It has been AutoGen-ed  November 17, 2009 at 06:37:09 AM by AutoGen 5.10
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:28 AM by AutoGen 5.11.3
  *  From the definitions    clktest-opts.def
  *  and the template file   options
  *
- * Generated from AutoOpts 33:0:8 templates.
- */
-
-/*
- *  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
- *  clktest 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.
+ * Generated from AutoOpts 33:3:8 templates.
+ *
+ *  AutoOpts is a copyrighted work.  This header file is not encumbered
+ *  by AutoOpts licensing, but is provided under the licensing terms chosen
+ *  by the clktest 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:
  *
- * clktest copyright (c) 1970-2009 David L. Mills and/or others - all rights reserved
+ * clktest copyright (c) 1970-2010 David L. Mills and/or others - all rights reserved
  *
  * see html/copyright.html
  */
@@ -41,7 +39,7 @@
  *  tolerable version is at least as old as what was current when the header
  *  template was released.
  */
-#define AO_TEMPLATE_VERSION 135168
+#define AO_TEMPLATE_VERSION 135171
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
@@ -65,13 +63,13 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    10
-#define CLKTEST_VERSION       "4.2.5p245-RC"
-#define CLKTEST_FULL_VERSION  "clktest - test the clock line discipline - Ver. 4.2.5p245-RC"
+#define CLKTEST_VERSION       "4.2.7p89"
+#define CLKTEST_FULL_VERSION  "clktest - test the clock line discipline - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
  *  option name (as in the teOptIndex enumeration above).
- *  e.g. HAVE_OPT( SPEED )
+ *  e.g. HAVE_OPT(SPEED)
  */
 #define         DESC(n) (clktestOptions.pOptDesc[INDEX_OPT_## n])
 #define     HAVE_OPT(n) (! UNUSED_OPT(& DESC(n)))
@@ -85,44 +83,10 @@ typedef enum {
 #define STACKLST_OPT(n) (((tArgList*)(DESC(n).optCookie))->apzArgs)
 #define    CLEAR_OPT(n) STMTS( \
                 DESC(n).fOptState &= OPTST_PERSISTENT_MASK;   \
-                if ( (DESC(n).fOptState & OPTST_INITENABLED) == 0) \
+                if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
                     DESC(n).fOptState |= OPTST_DISABLED; \
                 DESC(n).optCookie = NULL )
 
-/* * * * * *
- *
- *  Globals exported from the test the clock line discipline option definitions
- */
-#include <stdio.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <signal.h>
-#include <netinet/in.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <sys/file.h>
-#include <sgtty.h>
-
-#include "../include/ntp_fp.h"
-#include "../include/ntp.h"
-#include "../include/ntp_unixtime.h"
-
-#ifdef CLKLDISC
-# define DEFMAGIC      '\r'
-#endif
-
-#ifdef CLKLDISC
-# ifdef STREAM
-#  include <stropts.h>
-#  ifdef HAVE_SYS_CLKDEFS_H
-#   include <sys/clkdefs.h>
-#  endif
-#  undef  DEFMAGIC
-#  define DEFMAGIC     "\r"
-# endif
-#endif
-
 /*
  *  Make sure there are no #define name conflicts with the option names
  */
@@ -178,14 +142,14 @@ typedef enum {
 /*
  *  Interface defines not associated with particular options
  */
-#define ERRSKIP_OPTERR  STMTS( clktestOptions.fOptSet &= ~OPTPROC_ERRSTOP )
-#define ERRSTOP_OPTERR  STMTS( clktestOptions.fOptSet |= OPTPROC_ERRSTOP )
+#define ERRSKIP_OPTERR  STMTS(clktestOptions.fOptSet &= ~OPTPROC_ERRSTOP)
+#define ERRSTOP_OPTERR  STMTS(clktestOptions.fOptSet |= OPTPROC_ERRSTOP)
 #define RESTART_OPT(n)  STMTS( \
                 clktestOptions.curOptIdx = (n); \
-                clktestOptions.pzCurOpt  = NULL )
+                clktestOptions.pzCurOpt  = NULL)
 #define START_OPT       RESTART_OPT(1)
-#define USAGE(c)        (*clktestOptions.pUsageProc)( &clktestOptions, c )
-/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */
+#define USAGE(c)        (*clktestOptions.pUsageProc)(&clktestOptions, c)
+/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 408 */
 
 /* * * * * *
  *
@@ -200,9 +164,9 @@ extern tOptions   clktestOptions;
 #if defined(ENABLE_NLS)
 # ifndef _
 #   include <stdio.h>
-    static inline char* aoGetsText( char const* pz ) {
+    static inline char* aoGetsText(char const* pz) {
         if (pz == NULL) return NULL;
-        return (char*)gettext( pz );
+        return (char*)gettext(pz);
     }
 #   define _(s)  aoGetsText(s)
 # endif /* _() */
index c13141bad9ed6d264f582610508bf43c42aec693..a6629cddb4236d408cf45d8ab010f45012c7c372 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpd-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:08:57 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:58:27 AM by AutoGen 5.11.3
  *  From the definitions    ntpd-opts.def
  *  and the template file   options
  *
@@ -1006,7 +1006,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPD";
 tSCC   zUsageTitle[] =
-"ntpd - NTP daemon program - Ver. 4.2.7p88\n\
+"ntpd - NTP daemon program - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\
 \t\t[ <server1> ... <serverN> ]\n";
 #define zRcName     NULL
index 25900cd96e2834d3e18ad29375d04690500c0226..0f0494de511150fe7ed28bbee25332583d2fd58d 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpd-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:08:57 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:58:26 AM by AutoGen 5.11.3
  *  From the definitions    ntpd-opts.def
  *  and the template file   options
  *
@@ -89,8 +89,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    36
-#define NTPD_VERSION       "4.2.7p88"
-#define NTPD_FULL_VERSION  "ntpd - NTP daemon program - Ver. 4.2.7p88"
+#define NTPD_VERSION       "4.2.7p89"
+#define NTPD_FULL_VERSION  "ntpd - NTP daemon program - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index 67a43c750944c10390c39e3862a8dc407e199730..1d1a1b5f340729c0432eff25175f8d5d983d86a5 100644 (file)
@@ -6,7 +6,7 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (ntpd-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:09:14 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:58:54 AM by AutoGen 5.11.3
 # From the definitions    ntpd-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -64,7 +64,7 @@ This is the automatically generated usage text for ntpd:
 
 @exampleindent 0
 @example
-ntpd - NTP daemon program - Ver. 4.2.7p88
+ntpd - NTP daemon program - Ver. 4.2.7p89
 USAGE:  ntpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... \
                 [ <server1> ... <serverN> ]
   Flg Arg Option-Name    Description
index c38b66bc880693989d90d7c50632fc51fe25b9b5..b113c910245eecddab3b453be05865cab29e9134 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPD 1 2010-12-02 "( 4.2.7p88)" "Programmer's Manual"
+.TH NTPD 1 2010-12-04 "( 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (ntpd.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:09:14 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:58:54 AM by AutoGen 5.11.3
 .\"  From the definitions    ntpd-opts.def
 .\"  and the template file   agman1.tpl
 .\"
index 5badb9ccf2d69d25aad9027e1a8ef4ce250710fd..143181dac50a24cccdbdca946ae3122a7a3eca98 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:20 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:00 AM by AutoGen 5.11.3
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  *
@@ -451,7 +451,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPDC";
 tSCC   zUsageTitle[] =
-"ntpdc - vendor-specific NTP query program - Ver. 4.2.7p88\n\
+"ntpdc - vendor-specific NTP query program - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
index 3bb4b9b7564e9d3f71d6dd47bf4da4b3079438c0..e71bb706dd63f4e06b12662749585c0eacb2bd54 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpdc-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:20 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:00 AM by AutoGen 5.11.3
  *  From the definitions    ntpdc-opts.def
  *  and the template file   options
  *
@@ -68,8 +68,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    15
-#define NTPDC_VERSION       "4.2.7p88"
-#define NTPDC_FULL_VERSION  "ntpdc - vendor-specific NTP query program - Ver. 4.2.7p88"
+#define NTPDC_VERSION       "4.2.7p89"
+#define NTPDC_FULL_VERSION  "ntpdc - vendor-specific NTP query program - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index 0e350a8d6cbb8cfff8b5e84925c6ba09bae8f791..907793c640191005495182849bac47bd0cb94325 100644 (file)
@@ -6,7 +6,7 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (ntpdc-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:09:30 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:59:10 AM by AutoGen 5.11.3
 # From the definitions    ntpdc-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -58,7 +58,7 @@ This is the automatically generated usage text for ntpdc:
 
 @exampleindent 0
 @example
-ntpdc - vendor-specific NTP query program - Ver. 4.2.7p88
+ntpdc - vendor-specific NTP query program - Ver. 4.2.7p89
 USAGE:  ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
index 98baf4be677341bd2f372fa0b23d343747b5f695..27895026a0c642ab3f23733e60ee7b49bd7e278f 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPDC 1 2010-12-02 "( 4.2.7p88)" "Programmer's Manual"
+.TH NTPDC 1 2010-12-04 "( 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (ntpdc.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:09:29 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:59:09 AM by AutoGen 5.11.3
 .\"  From the definitions    ntpdc-opts.def
 .\"  and the template file   agman1.tpl
 .\"
index 45b7e64ac780589f26a21528f8edc13536d99f59..00a169a79bb7e25ae049cff28cc831e33f1ed5ed 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpq-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:30 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:10 AM by AutoGen 5.11.3
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  *
@@ -428,7 +428,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPQ";
 tSCC   zUsageTitle[] =
-"ntpq - standard NTP query program - Ver. 4.2.7p88\n\
+"ntpq - standard NTP query program - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
index ecfd91d0a2f940daabae3472b5dde628ff30c116..57c7080cb26d50069d180ca424e6246c2c386f1f 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpq-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:30 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:10 AM by AutoGen 5.11.3
  *  From the definitions    ntpq-opts.def
  *  and the template file   options
  *
@@ -67,8 +67,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    14
-#define NTPQ_VERSION       "4.2.7p88"
-#define NTPQ_FULL_VERSION  "ntpq - standard NTP query program - Ver. 4.2.7p88"
+#define NTPQ_VERSION       "4.2.7p89"
+#define NTPQ_FULL_VERSION  "ntpq - standard NTP query program - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index b8ceb9af95fa7c5bb56e8135ff101b6a45e94e91..7d579500e13128e25d3d52aa9df73c1b396c9956 100644 (file)
@@ -6,7 +6,7 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (ntpq-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:09:41 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:59:22 AM by AutoGen 5.11.3
 # From the definitions    ntpq-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -47,7 +47,7 @@ This is the automatically generated usage text for ntpq:
 
 @exampleindent 0
 @example
-ntpq - standard NTP query program - Ver. 4.2.7p88
+ntpq - standard NTP query program - Ver. 4.2.7p89
 USAGE:  ntpq [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
index e91c5b3521dfdeeb1dcf1abcaa0e2abca0f2b1eb..d51893cc848a6d6baa02319601d637c5e7bf9654 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPQ 1 2010-12-02 "( 4.2.7p88)" "Programmer's Manual"
+.TH NTPQ 1 2010-12-04 "( 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (ntpq.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:09:41 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:59:21 AM by AutoGen 5.11.3
 .\"  From the definitions    ntpq-opts.def
 .\"  and the template file   agman1.tpl
 .\"
index 1f69cb632828e8923a82e0b07fec923b2ba133f6..dc958c31c575aeaf1283ab5f8cd617586861b4b6 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpsnmpd-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:42 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:22 AM by AutoGen 5.11.3
  *  From the definitions    ntpsnmpd-opts.def
  *  and the template file   options
  *
@@ -255,7 +255,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTPSNMPD";
 tSCC   zUsageTitle[] =
-"ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p88\n\
+"ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
index 6a1ec6b7b0f4340b27a0e07ed49613edfd5b2ab5..e91549cccc2b971168fa27338d330103115abdef 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntpsnmpd-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:42 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:22 AM by AutoGen 5.11.3
  *  From the definitions    ntpsnmpd-opts.def
  *  and the template file   options
  *
@@ -61,8 +61,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    8
-#define NTPSNMPD_VERSION       "4.2.7p88"
-#define NTPSNMPD_FULL_VERSION  "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p88"
+#define NTPSNMPD_VERSION       "4.2.7p89"
+#define NTPSNMPD_FULL_VERSION  "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index 262933ef823738e14574f047a489cb86b69bb3f0..85e1be209bb76bd57e57f4b8f48b3616f29919d2 100644 (file)
@@ -6,7 +6,7 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (ntpsnmpd-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:09:47 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:59:27 AM by AutoGen 5.11.3
 # From the definitions    ntpsnmpd-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -34,7 +34,7 @@ This is the automatically generated usage text for ntpsnmpd:
 
 @exampleindent 0
 @example
-ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p88
+ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p89
 USAGE:  ntpsnmpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
   Flg Arg Option-Name    Description
    -n no  nofork         Do not fork
index 5fb119aefe1d8ae482f6ffb0ed789c8a3391242b..9c1921fb5981eb0aa19748e0692d1b1505b40693 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTPSNMPD 1 2010-12-02 "( 4.2.7p88)" "Programmer's Manual"
+.TH NTPSNMPD 1 2010-12-04 "( 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (ntpsnmpd.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:09:47 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:59:27 AM by AutoGen 5.11.3
 .\"  From the definitions    ntpsnmpd-opts.def
 .\"  and the template file   agman1.tpl
 .\"
index 0689b41b5e649440c695b0065058b73ddc83d18d..2198210eaad3c6abc4039ad9ff100749a8be9fce 100644 (file)
@@ -57,7 +57,7 @@ CLTAG=NTP_4_2_0
 # - Numeric values increment
 # - empty 'increments' to 1
 # - NEW 'increments' to empty
-point=88
+point=89
 
 ### betapoint is normally modified by script.
 # ntp-stable Beta number (betapoint)
index d9839ffb27b0adf4f2e6a8ccb489159c7f38823e..4270fc180f218f8f5b2e2bf80b29b803554f833a 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (sntp-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:08:50 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:58:20 AM by AutoGen 5.11.3
  *  From the definitions    sntp-opts.def
  *  and the template file   options
  *
@@ -473,7 +473,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "SNTP";
 tSCC   zUsageTitle[] =
-"sntp - standard SNTP program - Ver. 4.2.7p88\n\
+"sntp - standard SNTP program - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... hostname-or-IP ...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
@@ -484,18 +484,12 @@ tSCC*  apzHomeList[] = {
 tSCC   zBugsAddr[]    = "http://bugs.ntp.org, bugs@ntp.org";
 #define zExplain NULL
 tSCC    zDetail[]     = "\n\
-.I sntp\n\
-implements the Simple Network Time Protocol, and is used\n\
-to query an NTP or SNTP server and either\n\
-display the time\n\
-or\n\
-set the local system's time (given suitable privilege).\n\n\
-It can be\n\
-run interactively from the command line or as a\n\
-.I cron\n\
-job.\n\n\
-NTP and SNTP are defined by RFC 5905, which\n\
-obsoletes RFC 4330 and RFC 1305.\n";
+sntp implements the Simple Network Time Protocol, and is used to query\n\
+an NTP or SNTP server and either display the time or set the local\n\
+system's time (given suitable privilege).\n\n\
+It can be run interactively from the command line or as a cron job.\n\n\
+NTP and SNTP are defined by RFC 5905, which obsoletes RFC 4330 and RFC\n\
+1305.\n";
 tSCC    zFullVersion[] = SNTP_FULL_VERSION;
 /* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 493 */
 
index c489f4c2a5c4b91a57b360bfa1069f0bdfc9af1e..e492dd5fe0e9d49d6b474279f80c30846bc13a4b 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (sntp-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:08:50 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:58:20 AM by AutoGen 5.11.3
  *  From the definitions    sntp-opts.def
  *  and the template file   options
  *
@@ -70,8 +70,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    17
-#define SNTP_VERSION       "4.2.7p88"
-#define SNTP_FULL_VERSION  "sntp - standard SNTP program - Ver. 4.2.7p88"
+#define SNTP_VERSION       "4.2.7p89"
+#define SNTP_FULL_VERSION  "sntp - standard SNTP program - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index a048eccbfdd6a6e5044e05e81eb40dc535de7b18..a4d666665021ffbf827dbfa305797a2d0ae632b8 100644 (file)
@@ -6,26 +6,39 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (sntp-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:08:56 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:58:26 AM by AutoGen 5.11.3
 # From the definitions    sntp-opts.def
 # and the template file   aginfo.tpl
 @end ignore
 This program has no explanation.
 
-.I sntp
-implements the Simple Network Time Protocol, and is used
-to query an NTP or SNTP server and either
-display the time
-or
-set the local system's time (given suitable privilege).
-
-It can be
-run interactively from the command line or as a
-.I cron
+@code{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 or in a
+@code{cron}
 job.
 
-NTP and SNTP are defined by RFC 5905, which
-obsoletes RFC 4330 and RFC 1305.
+NTP (the Network Time Protocol) and SNTP (the Simple Network Time Protocol)
+are defined and described by RFC 5905.
+
+@indent
+The default is to write the estimated correct local date and time (i.e. not
+UTC) to the standard output in a format like
+@example
+1996 Oct 15 20:17:25.123 +4.567 +/- 0.089 secs
+@end example
+where the
+@example
++4.567 +/- 0.089 secs
+@end example
+indicates the local clock is 4.567 seconds behind the correct time
+(so 4.567 seconds must be added to the local clock to get it to be correct),
+and the time of
+@code{1996 Oct 15 20:17:25.123}
+is believed to be correct to within
+@code{+/- 0.089}
+seconds.
 
 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.
@@ -56,7 +69,7 @@ This is the automatically generated usage text for sntp:
 
 @exampleindent 0
 @example
-sntp - standard SNTP program - Ver. 4.2.7p88
+sntp - standard SNTP program - Ver. 4.2.7p89
 USAGE:  sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... hostname-or-IP ...
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
@@ -99,20 +112,14 @@ The following option preset mechanisms are supported:
  - reading file /deacon/backroom/snaps/ntp-dev/sntp/.ntprc
  - examining environment variables named SNTP_*
 
-.I sntp
-implements the Simple Network Time Protocol, and is used
-to query an NTP or SNTP server and either
-display the time
-or
-set the local system's time (given suitable privilege).
+sntp implements the Simple Network Time Protocol, and is used to query
+an NTP or SNTP server and either display the time or set the local
+system's time (given suitable privilege).
 
-It can be
-run interactively from the command line or as a
-.I cron
-job.
+It can be run interactively from the command line or as a cron job.
 
-NTP and SNTP are defined by RFC 5905, which
-obsoletes RFC 4330 and RFC 1305.
+NTP and SNTP are defined by RFC 5905, which obsoletes RFC 4330 and RFC
+1305.
 
 please send bug reports to:  http://bugs.ntp.org, bugs@@ntp.org
 @end example
@@ -165,7 +172,7 @@ syslog.
 @end itemize
 
 This option causes the client to write log messages to the specified
-logfile. 
+logfile.
 
 @node sntp ipv4
 @subsection ipv4 option (-4)
@@ -204,12 +211,12 @@ to the IPv6 namespace.
 @cindex sntp-keyfile
 
 This is the ``specify a keyfile. sntp will look in this file for the key specified with -a'' option.
-This option specifies the keyfile. SNTP will search for the key specified with -a keyno in this 
+This option specifies the keyfile. SNTP will search for the key specified with -a keyno in this
 file. Key files follow the following format:
 
 keyid keytype key
 
-Where  keyid is a number identifying this key
+Where  keyid is a number identifying this key
 keytype is one of the follow:
 S  Key in 64 Bit hexadecimal number as specified in in the DES specification.
 N  Key in 64 Bit hexadecimal number as specified in the NTP standard.
@@ -272,5 +279,5 @@ When this option is set all logging will be done using syslog.
 @cindex sntp-timeout
 
 This is the ``specify the number of seconds to wait for broadcasts'' option.
-When waiting for a broadcast packet SNTP will wait the number 
+When waiting for a broadcast packet SNTP will wait the number
 of seconds specified before giving up.  Default 68 seconds.
index a074c091f5b6ad55d19107c1ec297faa95a82293..187ea4cb979f452e32bf1f5ddb81dc24fe3d1b36 100644 (file)
@@ -1,7 +1,7 @@
-.TH SNTP 1 2010-12-02 "( 4.2.7p88)" "Programmer's Manual"
+.TH SNTP 1 2010-12-04 "( 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (sntp.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:08:55 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:58:25 AM by AutoGen 5.11.3
 .\"  From the definitions    sntp-opts.def
 .\"  and the template file   agman1.tpl
 .\"
@@ -85,7 +85,7 @@ This option must not appear in combination with any of the following options:
 syslog.
 .sp
 This option causes the client to write log messages to the specified
-logfile. 
+logfile.
 .TP
 .BR \-s ", " \--settod
 Set (step) the time with settimeofday().
@@ -115,7 +115,7 @@ The default \fIseconds\fP for this option is:
 .ti +4
  68
 .sp
-When waiting for a broadcast packet SNTP will wait the number 
+When waiting for a broadcast packet SNTP will wait the number
 of seconds specified before giving up.  Default 68 seconds.
 .TP
 .BR \-a " \fIauth-keynumber\fP, " \--authentication "=" \fIauth-keynumber\fP
@@ -129,12 +129,12 @@ key's identifier. See the keyfile option (-k) for more details.
 .BR \-k " \fIfile-name\fP, " \--keyfile "=" \fIfile-name\fP
 Specify a keyfile. SNTP will look in this file for the key specified with \-a.
 .sp
-This option specifies the keyfile. SNTP will search for the key specified with \-a keyno in this 
+This option specifies the keyfile. SNTP will search for the key specified with \-a keyno in this
 file. Key files follow the following format:
 
 keyid keytype key
 
-Where  keyid is a number identifying this key
+Where  keyid is a number identifying this key
 keytype is one of the follow:
 S  Key in 64 Bit hexadecimal number as specified in in the DES specification.
 N  Key in 64 Bit hexadecimal number as specified in the NTP standard.
index 17dce85642e48265c8efb200b33ab29e0cc9bcaa..b119a36d2a52d22e40da752ad00184de64ea5d03 100644 (file)
@@ -36,9 +36,9 @@ display the time offset of the system clock relative to the server
 clock.  Run as root, it can correct the system clock to this offset as
 well.  It can be run as an interactive command or from a cron job.
 
-  <p>This document applies to version 4.2.7p88 of <code>sntp</code>.
+  <p>This document applies to version 4.2.7p89 of <code>sntp</code>.
 
-  <p>The program implements the SNTP protocol as defined by the draft NTPv4
+  <p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
 IETF specification.
 
   <div class="shortcontents">
@@ -73,7 +73,358 @@ standard output in the format:
   <p>where the +4.567 +/- 0.089 secs indicates the time offset and
 error bound of the system clock relative to the server clock.
 
-<!-- @include sntp-opts.texi -->
+<div class="node">
+<p><hr>
+<a name="sntp-Invocation"></a>
+<br>
+</div>
+
+<h3 class="section">Invoking sntp</h3>
+
+<p><a name="index-sntp-1"></a><a name="index-standard-SNTP-program-2"></a>This program has no explanation.
+
+  <p><code>sntp</code>
+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 or in a
+<code>cron</code>
+job.
+
+  <p>NTP (the Network Time Protocol) and SNTP (the Simple Network Time Protocol)
+are defined and described by RFC 5905.
+
+  <p class="indent">The default is to write the estimated correct local date and time (i.e. not
+UTC) to the standard output in a format like
+<pre class="example">     1996 Oct 15 20:17:25.123 +4.567 +/- 0.089 secs
+</pre>
+  <p>where the
+<pre class="example">     +4.567 +/- 0.089 secs
+</pre>
+  <p>indicates the local clock is 4.567 seconds behind the correct time
+(so 4.567 seconds must be added to the local clock to get it to be correct),
+and the time of
+<code>1996 Oct 15 20:17:25.123</code>
+is believed to be correct to within
+<code>+/- 0.089</code>
+seconds.
+
+  <p>This section was generated by <strong>AutoGen</strong>,
+the aginfo template and the option descriptions for the <span class="command">sntp</span> program.  It documents the sntp usage text and option meanings.
+
+  <p>This software is released under a specialized copyright license.
+
+<ul class="menu">
+<li><a accesskey="1" href="#sntp-usage">sntp usage</a>:                   sntp usage help (-?) 
+<li><a accesskey="2" href="#sntp-adjtime">sntp adjtime</a>:                adjtime option (-j)
+<li><a accesskey="3" href="#sntp-authentication">sntp authentication</a>:         authentication option (-a)
+<li><a accesskey="4" href="#sntp-broadcast">sntp broadcast</a>:              broadcast option (-b)
+<li><a accesskey="5" href="#sntp-filelog">sntp filelog</a>:                filelog option (-l)
+<li><a accesskey="6" href="#sntp-ipv4">sntp ipv4</a>:                   ipv4 option (-4)
+<li><a accesskey="7" href="#sntp-ipv6">sntp ipv6</a>:                   ipv6 option (-6)
+<li><a accesskey="8" href="#sntp-keyfile">sntp keyfile</a>:                keyfile option (-k)
+<li><a accesskey="9" href="#sntp-kod">sntp kod</a>:                    kod option (-K)
+<li><a href="#sntp-normalverbose">sntp normalverbose</a>:          normalverbose option (-d)
+<li><a href="#sntp-settod">sntp settod</a>:                 settod option (-s)
+<li><a href="#sntp-syslog">sntp syslog</a>:                 syslog option (-p)
+<li><a href="#sntp-timeout">sntp timeout</a>:                timeout option (-t)
+</ul>
+
+<div class="node">
+<p><hr>
+<a name="sntp-usage"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-adjtime">sntp adjtime</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">sntp usage help (-?)</h4>
+
+<p><a name="index-sntp-usage-3"></a>
+This is the automatically generated usage text for sntp:
+
+<pre class="example">sntp - standard SNTP program - Ver. 4.2.7p89
+USAGE:  sntp [ -&lt;flag&gt; [&lt;val&gt;] | --&lt;name&gt;[{=| }&lt;val&gt;] ]... hostname-or-IP ...
+  Flg Arg Option-Name    Description
+   -4 no  ipv4           Force IPv4 DNS name resolution
+                                - prohibits these options:
+                                ipv6
+   -6 no  ipv6           Force IPv6 DNS name resolution
+                                - prohibits these options:
+                                ipv4
+   -d no  normalverbose  Normal verbose
+   -K Str kod            KoD history filename
+   -p no  syslog         Logging with syslog
+                                - prohibits these options:
+                                filelog
+   -l Str filelog        Log to specified logfile
+                                - prohibits these options:
+                                syslog
+   -s no  settod         Set (step) the time with settimeofday()
+                                - prohibits these options:
+                                adjtime
+   -j no  adjtime        Set (slew) the time with adjtime()
+                                - prohibits these options:
+                                settod
+   -b Str broadcast      Use broadcasts to the address specified for synchronisation
+   -t Num timeout        Specify the number of seconds to wait for broadcasts
+   -a Num authentication Enable authentication with the key auth-keynumber
+   -k Str keyfile        Specify a keyfile. SNTP will look in this file for the key specified with -a
+      opt version        Output version information and exit
+   -? no  help           Display extended usage information and exit
+   -! no  more-help      Extended usage information passed thru pager
+   -&gt; opt save-opts      Save the option state to a config file
+   -&lt; Str load-opts      Load options from a config file
+                                - disabled as --no-load-opts
+                                - may appear multiple times
+
+Options are specified by doubled hyphens and their name
+or by a single hyphen and the flag character.
+
+The following option preset mechanisms are supported:
+ - reading file /deacon/users/stenn/.ntprc
+ - reading file /deacon/backroom/snaps/ntp-dev/sntp/.ntprc
+ - examining environment variables named SNTP_*
+
+sntp implements the Simple Network Time Protocol, and is used to query
+an NTP or SNTP server and either display the time or set the local
+system's time (given suitable privilege).
+
+It can be run interactively from the command line or as a cron job.
+
+NTP and SNTP are defined by RFC 5905, which obsoletes RFC 4330 and RFC
+1305.
+
+please send bug reports to:  http://bugs.ntp.org, bugs@ntp.org
+</pre>
+  <div class="node">
+<p><hr>
+<a name="sntp-adjtime"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-authentication">sntp authentication</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-usage">sntp usage</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">adjtime option (-j)</h4>
+
+<p><a name="index-sntp_002dadjtime-4"></a>
+This is the &ldquo;set (slew) the time with adjtime()&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+settod. 
+</ul>
+
+<div class="node">
+<p><hr>
+<a name="sntp-authentication"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-broadcast">sntp broadcast</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-adjtime">sntp adjtime</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">authentication option (-a)</h4>
+
+<p><a name="index-sntp_002dauthentication-5"></a>
+This is the &ldquo;enable authentication with the key auth-keynumber&rdquo; option. 
+This option enables authentication using the key specified in this option's argument. 
+The argument of this option is the keyid, a number specified in the keyfile as this
+key's identifier. See the keyfile option (-k) for more details.
+
+<div class="node">
+<p><hr>
+<a name="sntp-broadcast"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-filelog">sntp filelog</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-authentication">sntp authentication</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">broadcast option (-b)</h4>
+
+<p><a name="index-sntp_002dbroadcast-6"></a>
+This is the &ldquo;use broadcasts to the address specified for synchronisation&rdquo; option. 
+If specified SNTP will listen to the specified broadcast address
+for NTP broadcasts.  The default maximum wait time,
+68 seconds, can be modified with -t.
+
+<div class="node">
+<p><hr>
+<a name="sntp-filelog"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-ipv4">sntp ipv4</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-broadcast">sntp broadcast</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">filelog option (-l)</h4>
+
+<p><a name="index-sntp_002dfilelog-7"></a>
+This is the &ldquo;log to specified logfile&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+syslog. 
+</ul>
+
+  <p>This option causes the client to write log messages to the specified
+logfile.
+
+<div class="node">
+<p><hr>
+<a name="sntp-ipv4"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-ipv6">sntp ipv6</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-filelog">sntp filelog</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">ipv4 option (-4)</h4>
+
+<p><a name="index-sntp_002dipv4-8"></a>
+This is the &ldquo;force ipv4 dns name resolution&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+ipv6. 
+</ul>
+
+  <p>Force DNS resolution of following host names on the command line
+to the IPv4 namespace.
+
+<div class="node">
+<p><hr>
+<a name="sntp-ipv6"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-keyfile">sntp keyfile</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-ipv4">sntp ipv4</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">ipv6 option (-6)</h4>
+
+<p><a name="index-sntp_002dipv6-9"></a>
+This is the &ldquo;force ipv6 dns name resolution&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+ipv4. 
+</ul>
+
+  <p>Force DNS resolution of following host names on the command line
+to the IPv6 namespace.
+
+<div class="node">
+<p><hr>
+<a name="sntp-keyfile"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-kod">sntp kod</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-ipv6">sntp ipv6</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">keyfile option (-k)</h4>
+
+<p><a name="index-sntp_002dkeyfile-10"></a>
+This is the &ldquo;specify a keyfile. sntp will look in this file for the key specified with -a&rdquo; option. 
+This option specifies the keyfile. SNTP will search for the key specified with -a keyno in this
+file. Key files follow the following format:
+
+  <p>keyid keytype key
+
+  <p>Where     keyid is a number identifying this key
+keytype is one of the follow:
+S  Key in 64 Bit hexadecimal number as specified in in the DES specification. 
+N  Key in 64 Bit hexadecimal number as specified in the NTP standard. 
+A  Key in a 1-to-8 character ASCII string. 
+M  Key in a 1-to-8 character ASCII string using the MD5 authentication scheme.
+
+  <p>For more information see ntp.keys(5).
+
+<div class="node">
+<p><hr>
+<a name="sntp-kod"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-normalverbose">sntp normalverbose</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-keyfile">sntp keyfile</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">kod option (-K)</h4>
+
+<p><a name="index-sntp_002dkod-11"></a>
+This is the &ldquo;kod history filename&rdquo; option. 
+Modifies the filename to be used to persist the history of KoD
+responses received from servers.  The default is
+/var/db/ntp-kod.
+
+<div class="node">
+<p><hr>
+<a name="sntp-normalverbose"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-settod">sntp settod</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-kod">sntp kod</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">normalverbose option (-d)</h4>
+
+<p><a name="index-sntp_002dnormalverbose-12"></a>
+This is the &ldquo;normal verbose&rdquo; option. 
+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.
+
+<div class="node">
+<p><hr>
+<a name="sntp-settod"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-syslog">sntp syslog</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-normalverbose">sntp normalverbose</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">settod option (-s)</h4>
+
+<p><a name="index-sntp_002dsettod-13"></a>
+This is the &ldquo;set (step) the time with settimeofday()&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+adjtime. 
+</ul>
+
+<div class="node">
+<p><hr>
+<a name="sntp-syslog"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-timeout">sntp timeout</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-settod">sntp settod</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">syslog option (-p)</h4>
+
+<p><a name="index-sntp_002dsyslog-14"></a>
+This is the &ldquo;logging with syslog&rdquo; option.
+
+  <p>This option has some usage constraints.  It:
+     <ul>
+<li>must not appear in combination with any of the following options:
+filelog. 
+</ul>
+
+  <p>When this option is set all logging will be done using syslog.
+
+<div class="node">
+<p><hr>
+<a name="sntp-timeout"></a>Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-syslog">sntp syslog</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
+<br>
+</div>
+
+<h4 class="subsection">timeout option (-t)</h4>
+
+<p><a name="index-sntp_002dtimeout-15"></a>
+This is the &ldquo;specify the number of seconds to wait for broadcasts&rdquo; option. 
+When waiting for a broadcast packet SNTP will wait the number
+of seconds specified before giving up.  Default 68 seconds.
+
 <div class="node">
 <p><hr>
 <a name="Usage"></a>Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-Description">sntp Description</a>,
@@ -88,14 +439,14 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
 check the current time, offset, and error in the local clock. 
 For example:
 
-<pre class="example">     sntp ntpserver.somewhere
+<pre class="example">    sntp ntpserver.somewhere
 </pre>
   <p>With suitable privilege, it can be run as a command or in a
 <code>crom</code> job to reset the local clock from a reliable server, like
 the <code>ntpdate</code> and <code>rdate</code> commands. 
 For example:
 
-<pre class="example">     sntp -a ntpserver.somewhere
+<pre class="example">    sntp -a ntpserver.somewhere
 </pre>
   </body></html>
 
index 848dc7cbf23f16581765cc5862619a35a3a6a7c9..d005e91188bb9574389c001dc44d229b8eff772e 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntp-keygen-opts.c)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:48 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:32 AM by AutoGen 5.11.3
  *  From the definitions    ntp-keygen-opts.def
  *  and the template file   options
  *
@@ -757,7 +757,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
  */
 tSCC   zPROGNAME[]   = "NTP_KEYGEN";
 tSCC   zUsageTitle[] =
-"ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p88\n\
+"ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p89\n\
 USAGE:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n";
 tSCC   zRcName[]     = ".ntprc";
 tSCC*  apzHomeList[] = {
index f68e4ffd2b27269544057f19c60633b25b3f6eb6..f75a7e324fadb65593d2350cc0dbacbd98593254 100644 (file)
@@ -1,7 +1,7 @@
 /*  
  *  EDIT THIS FILE WITH CAUTION  (ntp-keygen-opts.h)
  *  
- *  It has been AutoGen-ed  December  2, 2010 at 10:09:48 AM by AutoGen 5.11.3
+ *  It has been AutoGen-ed  December  4, 2010 at 10:59:32 AM by AutoGen 5.11.3
  *  From the definitions    ntp-keygen-opts.def
  *  and the template file   options
  *
@@ -77,8 +77,8 @@ typedef enum {
 } teOptIndex;
 
 #define OPTION_CT    24
-#define NTP_KEYGEN_VERSION       "4.2.7p88"
-#define NTP_KEYGEN_FULL_VERSION  "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p88"
+#define NTP_KEYGEN_VERSION       "4.2.7p89"
+#define NTP_KEYGEN_FULL_VERSION  "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p89"
 
 /*
  *  Interface defines for all options.  Replace "n" with the UPPER_CASED
index 420bf0cc6af73c5e8033ab2bea86958eceb5a74d..7ab54c0266eef99317eb1697bea8c0c5f20770e9 100644 (file)
@@ -6,7 +6,7 @@
 # 
 # EDIT THIS FILE WITH CAUTION  (ntp-keygen-opts.texi)
 # 
-# It has been AutoGen-ed  December  2, 2010 at 10:09:56 AM by AutoGen 5.11.3
+# It has been AutoGen-ed  December  4, 2010 at 10:59:40 AM by AutoGen 5.11.3
 # From the definitions    ntp-keygen-opts.def
 # and the template file   aginfo.tpl
 @end ignore
@@ -52,7 +52,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.7p88
+ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p89
 USAGE:  ntp-keygen [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
   Flg Arg Option-Name    Description
    -c Str certificate    certificate scheme
index adade8f9bc8fd19651bd5349338f2411c99d5400..d270bfa167b9e187456b1302bf2110b7ca364ed9 100644 (file)
@@ -1,7 +1,7 @@
-.TH NTP-KEYGEN 1 2010-12-02 "(ntp 4.2.7p88)" "Programmer's Manual"
+.TH NTP-KEYGEN 1 2010-12-04 "(ntp 4.2.7p89)" "Programmer's Manual"
 .\"  EDIT THIS FILE WITH CAUTION  (ntp-keygen.1)
 .\"  
-.\"  It has been AutoGen-ed  December  2, 2010 at 10:09:56 AM by AutoGen 5.11.3
+.\"  It has been AutoGen-ed  December  4, 2010 at 10:59:40 AM by AutoGen 5.11.3
 .\"  From the definitions    ntp-keygen-opts.def
 .\"  and the template file   agman1.tpl
 .\"