find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git] / miscutils / adjtimex.c
index 8e8ff8c0a6e533c68ac4bd41f2beb057cfc68e79..c8816e9e7cbcd057628e131e915a4a0ab603c5fd 100644 (file)
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
+//usage:#define adjtimex_trivial_usage
+//usage:       "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
+//usage:#define adjtimex_full_usage "\n\n"
+//usage:       "Read and optionally set system timebase parameters. See adjtimex(2)\n"
+//usage:     "\n       -q      Quiet"
+//usage:     "\n       -o OFF  Time offset, microseconds"
+//usage:     "\n       -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)"
+//usage:     "\n               (positive values make clock run faster)"
+//usage:     "\n       -t TICK Microseconds per tick, usually 10000"
+//usage:     "\n       -p TCONST"
+
 #include "libbb.h"
-#include <sys/timex.h>
+#ifdef __BIONIC__
+# include <linux/timex.h>
+#else
+# include <sys/timex.h>
+#endif
 
 static const uint16_t statlist_bit[] = {
        STA_PLL,