diff options
author | Denis Vlasenko | 2007-10-07 17:06:26 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-07 17:06:26 +0000 |
commit | f545be083d3e9758b70edf16aa532528cd7ce108 (patch) | |
tree | 136f8792a5217e6558a29aee33eef199e338f652 /include/applets.h | |
parent | def88985966a9351911844d42e06b735977bcb72 (diff) | |
download | busybox-f545be083d3e9758b70edf16aa532528cd7ce108.zip busybox-f545be083d3e9758b70edf16aa532528cd7ce108.tar.gz |
reviving libbusybox, adding CONFIG_INDIVIDUAL part 4
Diffstat (limited to 'include/applets.h')
-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 e88192d..ac3f65f 100644 --- a/include/applets.h +++ b/include/applets.h @@ -30,6 +30,13 @@ s - suid type: # define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv); # define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv); +#elif defined(NAME_MAIN_CNAME) +# define APPLET(name,l,s) name name##_main name +# define APPLET_NOUSAGE(name,main,l,s) name main##_main name +# define APPLET_ODDNAME(name,main,l,s,name2) name main##_main name2 +# define APPLET_NOEXEC(name,main,l,s,name2) name main##_main name2 +# define APPLET_NOFORK(name,main,l,s,name2) name main##_main name2 + #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE # define APPLET(name,l,s) name##_trivial_usage "\n\n" name##_full_usage "\0" # 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)) USE_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_NEVER, zcat)) USE_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_NEVER)) -#if !defined(PROTOTYPES) && !defined(MAKE_USAGE) +#if !defined(PROTOTYPES) && !defined(NAME_MAIN_CNAME) && !defined(MAKE_USAGE) { NULL } }; #endif |