]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
added sntp.1 and did a little cleanup
authorHarlan Stenn <stenn@ntp.org>
Wed, 25 Aug 2004 05:16:52 +0000 (01:16 -0400)
committerHarlan Stenn <stenn@ntp.org>
Wed, 25 Aug 2004 05:16:52 +0000 (01:16 -0400)
bk: 412c20c4xGCiVzsTpuVpWTS6h6judA

sntp/Makefile.am
sntp/header.h
sntp/main.c

index ccb62d83b03dc4613d8e514c4b07cb1f7878f8c0..b2694aabf5312cbb391151a917da908c29221b5a 100644 (file)
@@ -24,7 +24,10 @@ AUTOMAKE_OPTIONS = foreign
 # LDFLAGS = 
 # LIBS = -lm
 
+NULL=
+
 bin_PROGRAMS = sntp
+
 sntp_SOURCES = \
        header.h \
        internet.c \
@@ -34,5 +37,6 @@ sntp_SOURCES = \
        socket.c \
        timing.c \
        unix.c \
-       $(EMPTY)
+       $(NULL)
 
+dist_man_MANS= sntp.1
index 3b34ff385b95b787340d706ef0ef29e51a107b9e..ce0cbd1ca3ccd97b5c8f7d89946634d99de62902 100644 (file)
@@ -19,10 +19,10 @@ No changes should be needed for any system that is even remotely like Unix. */
 #define MAX_SOCKETS        10          /* Maximum number of addresses */
 
 #ifndef LOCKNAME
-#    define LOCKNAME "/etc/msntp.pid"  /* Stores the pid */
+#    define LOCKNAME "/etc/sntp.pid"  /* Stores the pid */
 #endif
 #ifndef SAVENAME
-#    define SAVENAME "/etc/msntp.state" /* Stores the recovery state */
+#    define SAVENAME "/etc/sntp.state" /* Stores the recovery state */
 #endif
 
 
index e6cee75f04f877c5923198a9ee578fd6f189831c..d1861d69bd5b75364df6d56ea145d4370697d0f7 100644 (file)
@@ -11,7 +11,7 @@ which 90-99% of all NTP systems are run ....
 
 The specification of this program is:
 
-    msntp [ --help | -h | -? ] [ -v | -V | -W ]
+    sntp [ --help | -h | -? ] [ -v | -V | -W ]
         [ -B [ period ] | -S | -q [ -f savefile ] |
             [ { -r | -a } [ -P prompt ] [ -l lockfile ] ]
             [ -c count ] [ -e minerr ][ -E maxerr ]
@@ -86,13 +86,13 @@ values are from 1 to 3600, and the default is 15 if 'address' is specified and
 Acceptable values are from 1 to 1440 (a day), and the default is 300.
 
     'lockfile' may be used in an update mode to ensure that there is only
-one copy of msntp running at once.  The default is installation-dependent,
-but will usually be /etc/msntp.pid.
+one copy of sntp running at once.  The default is installation-dependent,
+but will usually be /etc/sntp.pid.
 
     'savefile' may be used in daemon mode to store a record of previous
-packets, which may speed up recalculating the drift after msntp has to be
+packets, which may speed up recalculating the drift after sntp has to be
 restarted (e.g. because of network or server outages).  The default is
-installation-dependent, but will usually be /etc/msntp.state.  Note that
+installation-dependent, but will usually be /etc/sntp.state.  Note that
 there is no locking of this file, and using it twice may cause chaos.
 
     'address' is the DNS name or IP number of a host to poll; if no name is
@@ -1600,16 +1600,16 @@ one of the specialised routines to do the work. */
     char c;
 
     if (argv[0] == NULL || argv[0][0] == '\0')
-        argv0 = "msntp";
+        argv0 = "sntp";
     else if ((argv0 = strrchr(argv[0],'/')) != NULL)
         ++argv0;
     else
         argv0 = argv[0];
     setvbuf(stdout,NULL,_IOLBF,BUFSIZ);
     setvbuf(stderr,NULL,_IOLBF,BUFSIZ);
-    if (INT_MAX < 2147483647) fatal(0,"msntp requires >= 32-bit ints",NULL);
+    if (INT_MAX < 2147483647) fatal(0,"sntp requires >= 32-bit ints",NULL);
     if (DBL_EPSILON > 1.0e-13)
-        fatal(0,"msntp requires doubles with eps <= 1.0e-13",NULL);
+        fatal(0,"sntp requires doubles with eps <= 1.0e-13",NULL);
     for (k = 0; k < MAX_SOCKETS; ++k) hostnames[k] = NULL;
 
 /* Decode the arguments. */