aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-20 19:18:10 +0000
committerMark Whitley <markw@lineo.com>2001-03-20 19:18:10 +0000
commit6f93277f56f97852d6e4e937ef758df0cce7b8ef (patch)
treebe1bc8a7504d208fea701fa4686d93bb6bd62576 /include
parentba372620c256b23340c5630098f1a81c10022386 (diff)
downloadbusybox-6f93277f56f97852d6e4e937ef758df0cce7b8ef.tar.gz
Added adjtimex applet from Larry Doolittle.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h13
2 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 8c59507ce..2af2b49e7 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -46,6 +46,9 @@
#ifdef BB_TEST
APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_ADJTIMEX
+ APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
+#endif
#ifdef BB_AR
APPLET(ar, ar_main, _BB_DIR_USR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index dc3b49816..8ec0170e2 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1,3 +1,16 @@
+#define adjtimex_trivial_usage \
+ "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
+#define adjtimex_full_usage \
+ "Reads and optionally sets system timebase parameters.\n" \
+ "See adjtimex(2).\n\n" \
+ "Options:\n" \
+ "\t-q\t\tquiet mode - do not print\n" \
+ "\t-o offset\ttime offset, microseconds\n" \
+ "\t-f frequency\tfrequency adjust, integer kernel units (65536 is 1ppm)\n" \
+ "\t\t\t(positive values make the system clock run fast)\n" \
+ "\t-t tick\t\tmicroseconds per tick, usually 10000\n" \
+ "\t-p timeconstant\n"
+
#define ar_trivial_usage \
"-[ovR]{ptx} archive filenames"
#define ar_full_usage \