aboutsummaryrefslogtreecommitdiff
path: root/networking/ntpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r--networking/ntpd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index ba2950d8f..e27dbaa6b 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -27,6 +27,23 @@
27 * * 27 * *
28 *********************************************************************** 28 ***********************************************************************
29 */ 29 */
30
31//usage:#define ntpd_trivial_usage
32//usage: "[-dnqNw"IF_FEATURE_NTPD_SERVER("l")"] [-S PROG] [-p PEER]..."
33//usage:#define ntpd_full_usage "\n\n"
34//usage: "NTP client/server\n"
35//usage: "\nOptions:"
36//usage: "\n -d Verbose"
37//usage: "\n -n Do not daemonize"
38//usage: "\n -q Quit after clock is set"
39//usage: "\n -N Run at high priority"
40//usage: "\n -w Do not set time (only query peers), implies -n"
41//usage: IF_FEATURE_NTPD_SERVER(
42//usage: "\n -l Run as server on port 123"
43//usage: )
44//usage: "\n -S PROG Run PROG after stepping time, stratum change, and every 11 mins"
45//usage: "\n -p PEER Obtain time from PEER (may be repeated)"
46
30#include "libbb.h" 47#include "libbb.h"
31#include <math.h> 48#include <math.h>
32#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ 49#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */