diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/dc.c | 8 | ||||
-rw-r--r-- | miscutils/dutmp.c | 8 | ||||
-rw-r--r-- | miscutils/makedevs.c | 17 | ||||
-rw-r--r-- | miscutils/mktemp.c | 8 | ||||
-rw-r--r-- | miscutils/mt.c | 6 | ||||
-rw-r--r-- | miscutils/update.c | 12 |
6 files changed, 0 insertions, 59 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c index 7b13cb943..fac48e895 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c | |||
@@ -8,14 +8,6 @@ | |||
8 | 8 | ||
9 | /* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ | 9 | /* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ |
10 | 10 | ||
11 | static const char dc_usage[] = "dc expression ...\n" | ||
12 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
13 | "\nThis is a Tiny RPN calculator that understands the\n" | ||
14 | "following operations: +, -, /, *, and, or, not, eor.\n" | ||
15 | "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n" | ||
16 | #endif | ||
17 | ; | ||
18 | |||
19 | static double stack[100]; | 11 | static double stack[100]; |
20 | static unsigned int pointer; | 12 | static unsigned int pointer; |
21 | 13 | ||
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index c6bc0c794..047b8805f 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c | |||
@@ -23,14 +23,6 @@ | |||
23 | #include "messages.c" | 23 | #include "messages.c" |
24 | #include <utmp.h> | 24 | #include <utmp.h> |
25 | 25 | ||
26 | |||
27 | static const char dutmp_usage[] = "dutmp [FILE]\n" | ||
28 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
29 | "\nDump utmp file format (pipe delimited) from FILE\n" | ||
30 | "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')\n" | ||
31 | #endif | ||
32 | ; | ||
33 | |||
34 | extern int dutmp_main(int argc, char **argv) | 26 | extern int dutmp_main(int argc, char **argv) |
35 | { | 27 | { |
36 | 28 | ||
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 5072095b5..99dbc0bd5 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -16,23 +16,6 @@ | |||
16 | #include <sys/types.h> | 16 | #include <sys/types.h> |
17 | #include <sys/stat.h> | 17 | #include <sys/stat.h> |
18 | 18 | ||
19 | static const char makedevs_usage[] = | ||
20 | "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n" | ||
21 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
22 | "\nCreates a range of block or character special files\n\n" | ||
23 | "TYPEs include:\n" | ||
24 | "\tb:\tMake a block (buffered) device.\n" | ||
25 | "\tc or u:\tMake a character (un-buffered) device.\n" | ||
26 | "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" | ||
27 | "FIRST specifies the number appended to NAME to create the first device.\n" | ||
28 | "LAST specifies the number of the last item that should be created.\n" | ||
29 | "If 's' is the last argument, the base device is created as well.\n\n" | ||
30 | "For example:\n" | ||
31 | "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" | ||
32 | "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8\n" | ||
33 | #endif | ||
34 | ; | ||
35 | |||
36 | int makedevs_main(int argc, char **argv) | 19 | int makedevs_main(int argc, char **argv) |
37 | { | 20 | { |
38 | 21 | ||
diff --git a/miscutils/mktemp.c b/miscutils/mktemp.c index 247d16d24..2ec078503 100644 --- a/miscutils/mktemp.c +++ b/miscutils/mktemp.c | |||
@@ -26,14 +26,6 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | 28 | ||
29 | const char mktemp_usage[] = | ||
30 | "mktemp [-q] TEMPLATE\n" | ||
31 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
32 | "\nCreates a temporary file with its name based on TEMPLATE.\n" | ||
33 | "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).\n" | ||
34 | #endif | ||
35 | ; | ||
36 | |||
37 | extern int mktemp_main(int argc, char **argv) | 29 | extern int mktemp_main(int argc, char **argv) |
38 | { | 30 | { |
39 | if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q"))) | 31 | if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q"))) |
diff --git a/miscutils/mt.c b/miscutils/mt.c index 4ab478270..087819e72 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -4,12 +4,6 @@ | |||
4 | #include <sys/mtio.h> | 4 | #include <sys/mtio.h> |
5 | #include <sys/fcntl.h> | 5 | #include <sys/fcntl.h> |
6 | 6 | ||
7 | static const char mt_usage[] = "mt [-f device] opcode value\n" | ||
8 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
9 | "\nControl magnetic tape drive operation\n" | ||
10 | #endif | ||
11 | ; | ||
12 | |||
13 | struct mt_opcodes { | 7 | struct mt_opcodes { |
14 | char *name; | 8 | char *name; |
15 | short value; | 9 | short value; |
diff --git a/miscutils/update.c b/miscutils/update.c index f94346172..0bdc90eaa 100644 --- a/miscutils/update.c +++ b/miscutils/update.c | |||
@@ -34,18 +34,6 @@ | |||
34 | static _syscall2(int, bdflush, int, func, int, data); | 34 | static _syscall2(int, bdflush, int, func, int, data); |
35 | #endif /* __GLIBC__ */ | 35 | #endif /* __GLIBC__ */ |
36 | 36 | ||
37 | |||
38 | static char update_usage[] = | ||
39 | "update [options]\n" | ||
40 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
41 | "\nPeriodically flushes filesystem buffers.\n\n" | ||
42 | "Options:\n" | ||
43 | "\t-S\tforce use of sync(2) instead of flushing\n" | ||
44 | "\t-s SECS\tcall sync this often (default 30)\n" | ||
45 | "\t-f SECS\tflush some buffers this often (default 5)\n" | ||
46 | #endif | ||
47 | ; | ||
48 | |||
49 | static unsigned int sync_duration = 30; | 37 | static unsigned int sync_duration = 30; |
50 | static unsigned int flush_duration = 5; | 38 | static unsigned int flush_duration = 5; |
51 | static int use_sync = 0; | 39 | static int use_sync = 0; |