diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.src.h (renamed from include/applets.h) | 24 | ||||
-rw-r--r-- | include/usage.src.h (renamed from include/usage.h) | 20 |
2 files changed, 11 insertions, 33 deletions
diff --git a/include/applets.h b/include/applets.src.h index d8a706b44..2998a0ea9 100644 --- a/include/applets.h +++ b/include/applets.src.h | |||
@@ -4,11 +4,6 @@ | |||
4 | * | 4 | * |
5 | * If you write a new applet, you need to add an entry to this list to make | 5 | * If you write a new applet, you need to add an entry to this list to make |
6 | * busybox aware of it. | 6 | * busybox aware of it. |
7 | * | ||
8 | * It is CRUCIAL that this listing be kept in ascii order, otherwise the binary | ||
9 | * search lookup contributed by Gaute B Strokkenes stops working. If you value | ||
10 | * your kneecaps, you'll be sure to *make sure* that any changes made to this | ||
11 | * file result in the listing remaining in ascii order. You have been warned. | ||
12 | */ | 7 | */ |
13 | 8 | ||
14 | /* | 9 | /* |
@@ -36,16 +31,16 @@ s - suid type: | |||
36 | # define APPLET_NOFORK(name,main,l,s,name2) name main##_main name2 | 31 | # define APPLET_NOFORK(name,main,l,s,name2) name main##_main name2 |
37 | 32 | ||
38 | #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE | 33 | #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE |
39 | # define APPLET(name,l,s) name##_trivial_usage name##_full_usage "\0" | 34 | # define APPLET(name,l,s) MAKE_USAGE(#name, name##_trivial_usage name##_full_usage) |
40 | # define APPLET_ODDNAME(name,main,l,s,name2) name2##_trivial_usage name2##_full_usage "\0" | 35 | # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) |
41 | # define APPLET_NOEXEC(name,main,l,s,name2) name2##_trivial_usage name2##_full_usage "\0" | 36 | # define APPLET_NOEXEC(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) |
42 | # define APPLET_NOFORK(name,main,l,s,name2) name2##_trivial_usage name2##_full_usage "\0" | 37 | # define APPLET_NOFORK(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) |
43 | 38 | ||
44 | #elif defined(MAKE_USAGE) && !ENABLE_FEATURE_VERBOSE_USAGE | 39 | #elif defined(MAKE_USAGE) && !ENABLE_FEATURE_VERBOSE_USAGE |
45 | # define APPLET(name,l,s) name##_trivial_usage "\0" | 40 | # define APPLET(name,l,s) MAKE_USAGE(#name, name##_trivial_usage) |
46 | # define APPLET_ODDNAME(name,main,l,s,name2) name2##_trivial_usage "\0" | 41 | # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) |
47 | # define APPLET_NOEXEC(name,main,l,s,name2) name2##_trivial_usage "\0" | 42 | # define APPLET_NOEXEC(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) |
48 | # define APPLET_NOFORK(name,main,l,s,name2) name2##_trivial_usage "\0" | 43 | # define APPLET_NOFORK(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) |
49 | 44 | ||
50 | #elif defined(MAKE_LINKS) | 45 | #elif defined(MAKE_LINKS) |
51 | # define APPLET(name,l,c) LINK l name | 46 | # define APPLET(name,l,c) LINK l name |
@@ -67,6 +62,7 @@ s - suid type: | |||
67 | #endif | 62 | #endif |
68 | 63 | ||
69 | 64 | ||
65 | INSERT | ||
70 | IF_TEST(APPLET_NOFORK([, test, _BB_DIR_USR_BIN, _BB_SUID_DROP, test)) | 66 | IF_TEST(APPLET_NOFORK([, test, _BB_DIR_USR_BIN, _BB_SUID_DROP, test)) |
71 | IF_TEST(APPLET_NOFORK([[, test, _BB_DIR_USR_BIN, _BB_SUID_DROP, test)) | 67 | IF_TEST(APPLET_NOFORK([[, test, _BB_DIR_USR_BIN, _BB_SUID_DROP, test)) |
72 | IF_ACPID(APPLET(acpid, _BB_DIR_SBIN, _BB_SUID_DROP)) | 68 | IF_ACPID(APPLET(acpid, _BB_DIR_SBIN, _BB_SUID_DROP)) |
@@ -87,8 +83,6 @@ IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | |||
87 | IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) | 83 | IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) |
88 | IF_BOOTCHARTD(APPLET(bootchartd, _BB_DIR_SBIN, _BB_SUID_DROP)) | 84 | IF_BOOTCHARTD(APPLET(bootchartd, _BB_DIR_SBIN, _BB_SUID_DROP)) |
89 | IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) | 85 | IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) |
90 | IF_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | ||
91 | IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP, bzcat)) | ||
92 | IF_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 86 | IF_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
93 | IF_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 87 | IF_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
94 | IF_CAT(APPLET_NOFORK(cat, cat, _BB_DIR_BIN, _BB_SUID_DROP, cat)) | 88 | IF_CAT(APPLET_NOFORK(cat, cat, _BB_DIR_BIN, _BB_SUID_DROP, cat)) |
diff --git a/include/usage.h b/include/usage.src.h index a9c4c4294..f9f457871 100644 --- a/include/usage.h +++ b/include/usage.src.h | |||
@@ -15,6 +15,8 @@ | |||
15 | 15 | ||
16 | #define NOUSAGE_STR "\b" | 16 | #define NOUSAGE_STR "\b" |
17 | 17 | ||
18 | INSERT | ||
19 | |||
18 | #define acpid_trivial_usage \ | 20 | #define acpid_trivial_usage \ |
19 | "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..." | 21 | "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..." |
20 | #define acpid_full_usage "\n\n" \ | 22 | #define acpid_full_usage "\n\n" \ |
@@ -234,19 +236,6 @@ | |||
234 | "\n -v Verbose" \ | 236 | "\n -v Verbose" \ |
235 | "\n -F Don't store or verify checksum" \ | 237 | "\n -F Don't store or verify checksum" \ |
236 | 238 | ||
237 | #define bunzip2_trivial_usage \ | ||
238 | "[OPTIONS] [FILE]..." | ||
239 | #define bunzip2_full_usage "\n\n" \ | ||
240 | "Decompress FILEs (or stdin)\n" \ | ||
241 | "\nOptions:" \ | ||
242 | "\n -c Write to stdout" \ | ||
243 | "\n -f Force" \ | ||
244 | |||
245 | #define bzcat_trivial_usage \ | ||
246 | "FILE" | ||
247 | #define bzcat_full_usage "\n\n" \ | ||
248 | "Decompress to stdout" | ||
249 | |||
250 | #define unlzma_trivial_usage \ | 239 | #define unlzma_trivial_usage \ |
251 | "[OPTIONS] [FILE]..." | 240 | "[OPTIONS] [FILE]..." |
252 | #define unlzma_full_usage "\n\n" \ | 241 | #define unlzma_full_usage "\n\n" \ |
@@ -5247,11 +5236,6 @@ | |||
5247 | "$ ls | xargs gzip\n" \ | 5236 | "$ ls | xargs gzip\n" \ |
5248 | "$ find . -name '*.c' -print | xargs rm\n" | 5237 | "$ find . -name '*.c' -print | xargs rm\n" |
5249 | 5238 | ||
5250 | #define yes_trivial_usage \ | ||
5251 | "[OPTIONS] [STRING]" | ||
5252 | #define yes_full_usage "\n\n" \ | ||
5253 | "Repeatedly output a line with STRING, or 'y'" | ||
5254 | |||
5255 | #define zcat_trivial_usage \ | 5239 | #define zcat_trivial_usage \ |
5256 | "FILE" | 5240 | "FILE" |
5257 | #define zcat_full_usage "\n\n" \ | 5241 | #define zcat_full_usage "\n\n" \ |