diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-10 21:38:30 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-10 21:38:30 +0000 |
commit | 48b6c559ccf5bc74eaa7e334310e9edf367033e2 (patch) | |
tree | 14183fd728ce51ae10baee70f7d8f72c39d30649 /include/applets.h | |
parent | 04c078dac604c21cf593a3298f788f69b7f739e6 (diff) | |
download | busybox-w32-48b6c559ccf5bc74eaa7e334310e9edf367033e2.tar.gz busybox-w32-48b6c559ccf5bc74eaa7e334310e9edf367033e2.tar.bz2 busybox-w32-48b6c559ccf5bc74eaa7e334310e9edf367033e2.zip |
make a few struct bb_applet members conditional
rename sllep_and_die -> xfunc_die
make fflush_stdout_and_exit NOFORK-safe
fix some buglets found by randomconfig
git-svn-id: svn://busybox.net/trunk/busybox@18391 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/applets.h')
-rw-r--r-- | include/applets.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/applets.h b/include/applets.h index b59d33183..d05299b69 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -52,12 +52,12 @@ s - suid type: | |||
52 | # define APPLET_NOFORK(name,main,l,s,name2) LINK l name | 52 | # define APPLET_NOFORK(name,main,l,s,name2) LINK l name |
53 | 53 | ||
54 | #else | 54 | #else |
55 | const struct BB_applet applets[] = { /* name,main,location,need_suid */ | 55 | const struct bb_applet applets[] = { /* name, main, location, need_suid */ |
56 | # define APPLET(name,l,s) {#name,name##_main,l,s}, | 56 | # define APPLET(name,l,s) { #name, name##_main USE_FEATURE_INSTALLER(,l) USE_FEATURE_SUID(,s) }, |
57 | # define APPLET_NOUSAGE(name,main,l,s) {#name,main##_main,l,s}, | 57 | # define APPLET_NOUSAGE(name,main,l,s) { #name, main##_main USE_FEATURE_INSTALLER(,l) USE_FEATURE_SUID(,s) }, |
58 | # define APPLET_ODDNAME(name,main,l,s,name2) {#name,main##_main,l,s}, | 58 | # define APPLET_ODDNAME(name,main,l,s,name2) { #name, main##_main USE_FEATURE_INSTALLER(,l) USE_FEATURE_SUID(,s) }, |
59 | # define APPLET_NOEXEC(name,main,l,s,name2) {#name,main##_main,l,s,1}, | 59 | # define APPLET_NOEXEC(name,main,l,s,name2) { #name, main##_main USE_FEATURE_INSTALLER(,l) USE_FEATURE_SUID(,s) USE_FEATURE_EXEC_PREFER_APPLETS(,1) }, |
60 | # define APPLET_NOFORK(name,main,l,s,name2) {#name,main##_main,l,s,1,1}, | 60 | # define APPLET_NOFORK(name,main,l,s,name2) { #name, main##_main USE_FEATURE_INSTALLER(,l) USE_FEATURE_SUID(,s) USE_FEATURE_EXEC_PREFER_APPLETS(,1 ,1) }, |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #if ENABLE_INSTALL_NO_USR | 63 | #if ENABLE_INSTALL_NO_USR |
@@ -355,7 +355,7 @@ USE_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_NEVER, zcat)) | |||
355 | USE_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 355 | USE_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
356 | 356 | ||
357 | #if !defined(PROTOTYPES) && !defined(MAKE_USAGE) | 357 | #if !defined(PROTOTYPES) && !defined(MAKE_USAGE) |
358 | { 0, NULL, 0, 0 } | 358 | { NULL } |
359 | }; | 359 | }; |
360 | #endif | 360 | #endif |
361 | 361 | ||