From 6f93277f56f97852d6e4e937ef758df0cce7b8ef Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Tue, 20 Mar 2001 19:18:10 +0000 Subject: Added adjtimex applet from Larry Doolittle. --- include/applets.h | 3 +++ include/usage.h | 13 +++++++++++++ 2 files changed, 16 insertions(+) (limited to 'include') 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 \ -- cgit v1.2.3