diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index e88192d24..ac3f65f6d 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -30,6 +30,13 @@ s - suid type: | |||
30 | # define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv); | 30 | # define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv); |
31 | # define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv); | 31 | # define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv); |
32 | 32 | ||
33 | #elif defined(NAME_MAIN_CNAME) | ||
34 | # define APPLET(name,l,s) name name##_main name | ||
35 | # define APPLET_NOUSAGE(name,main,l,s) name main##_main name | ||
36 | # define APPLET_ODDNAME(name,main,l,s,name2) name main##_main name2 | ||
37 | # define APPLET_NOEXEC(name,main,l,s,name2) name main##_main name2 | ||
38 | # define APPLET_NOFORK(name,main,l,s,name2) name main##_main name2 | ||
39 | |||
33 | #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE | 40 | #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE |
34 | # define APPLET(name,l,s) name##_trivial_usage "\n\n" name##_full_usage "\0" | 41 | # define APPLET(name,l,s) name##_trivial_usage "\n\n" name##_full_usage "\0" |
35 | # define APPLET_NOUSAGE(name,main,l,s) "\b\0" | 42 | # define APPLET_NOUSAGE(name,main,l,s) "\b\0" |
@@ -373,7 +380,7 @@ USE_YES(APPLET_NOFORK(yes, yes, _BB_DIR_USR_BIN, _BB_SUID_NEVER, yes)) | |||
373 | USE_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_NEVER, zcat)) | 380 | USE_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_NEVER, zcat)) |
374 | USE_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 381 | USE_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
375 | 382 | ||
376 | #if !defined(PROTOTYPES) && !defined(MAKE_USAGE) | 383 | #if !defined(PROTOTYPES) && !defined(NAME_MAIN_CNAME) && !defined(MAKE_USAGE) |
377 | { NULL } | 384 | { NULL } |
378 | }; | 385 | }; |
379 | #endif | 386 | #endif |