diff options
author | Nik Clayton <nik@FreeBSD.org> | 1999-07-05 23:06:33 +0000 |
---|---|---|
committer | Nik Clayton <nik@FreeBSD.org> | 1999-07-05 23:06:33 +0000 |
commit | 5cb0ef41b54ddd4feabc187e0d5576982e7d527f (patch) | |
tree | 149cf509e86dbc82c48c5672a210bc82f6dfb92c /usr.sbin/xntpd | |
parent | f591fcd11808fb7b0329f9a4b688155a3b08660a (diff) | |
download | src-5cb0ef41b54ddd4feabc187e0d5576982e7d527f.tar.gz src-5cb0ef41b54ddd4feabc187e0d5576982e7d527f.zip |
Make the source and the man page agree about the flags accepted by
ntpdate.
PR: docs/12344
Submitted by: Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
Reviewed by: nik
Notes
Notes:
svn path=/head/; revision=48608
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r-- | usr.sbin/xntpd/doc/ntpdate.8 | 11 | ||||
-rw-r--r-- | usr.sbin/xntpd/ntpdate/ntpdate.c | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/xntpd/doc/ntpdate.8 b/usr.sbin/xntpd/doc/ntpdate.8 index bf6832df286a..959c8a119a97 100644 --- a/usr.sbin/xntpd/doc/ntpdate.8 +++ b/usr.sbin/xntpd/doc/ntpdate.8 @@ -1,5 +1,5 @@ .\" -.\" $Id$ +.\" $Id: ntpdate.8,v 1.4 1998/02/19 08:05:35 charnier Exp $ .\" .Dd December 21, 1993 .Dt NTPDATE 8 @@ -9,7 +9,7 @@ .Nd set the date and time via NTP .Sh SYNOPSIS .Nm -.Op Fl bds +.Op Fl bdqsv .Op Fl o Ar version .Op Fl a Ar key# .Op Fl e Ar authdelay @@ -75,7 +75,12 @@ The flag may be used to determine what .Nm will do without it actually doing it. Information useful for general -debugging will also be printed. By default +debugging will also be printed. The +.Fl q +flag is used to perform a simple query without binding a priviledged +UPD port. The +.Fl v +enables a few diagnostic messages. By default .Nm claims to be an NTP version 3 implementation in its outgoing packets. As some older software will decline to respond to version 3 queries, the diff --git a/usr.sbin/xntpd/ntpdate/ntpdate.c b/usr.sbin/xntpd/ntpdate/ntpdate.c index bb5ede5a0f7f..608832858ff7 100644 --- a/usr.sbin/xntpd/ntpdate/ntpdate.c +++ b/usr.sbin/xntpd/ntpdate/ntpdate.c @@ -251,7 +251,7 @@ main(argc, argv) sys_maxservers = argc - ntp_optind; if (errflg || sys_maxservers == 0) { (void) fprintf(stderr, -"usage: %s [-bqs] [-a key#] [-k file] [-p samples] [-t timeo] server ...\n", +"usage: %s [-bdqsv] [-o version] [-a key#] [-e authdelay] [-k keyfile] [-p samples] [-t timeout] server ...\n", progname); exit(2); } |