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/libbb.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/libbb.h')
-rw-r--r-- | include/libbb.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3919524bc..6fff441c5 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -608,7 +608,7 @@ llist_t *llist_rev(llist_t *list); | |||
608 | int write_pidfile(const char *path); | 608 | int write_pidfile(const char *path); |
609 | #define remove_pidfile(f) ((void)unlink(f)) | 609 | #define remove_pidfile(f) ((void)unlink(f)) |
610 | #else | 610 | #else |
611 | #define write_pidfile(f) 1 | 611 | #define write_pidfile(f) TRUE |
612 | #define remove_pidfile(f) ((void)0) | 612 | #define remove_pidfile(f) ((void)0) |
613 | #endif | 613 | #endif |
614 | 614 | ||
@@ -623,7 +623,7 @@ extern smallint logmode; | |||
623 | extern int die_sleep; | 623 | extern int die_sleep; |
624 | extern int xfunc_error_retval; | 624 | extern int xfunc_error_retval; |
625 | extern jmp_buf die_jmp; | 625 | extern jmp_buf die_jmp; |
626 | extern void sleep_and_die(void) ATTRIBUTE_NORETURN; | 626 | extern void xfunc_die(void) ATTRIBUTE_NORETURN; |
627 | extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; | 627 | extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; |
628 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 628 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
629 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 629 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
@@ -670,8 +670,8 @@ const struct hwtype *get_hwntype(int type); | |||
670 | 670 | ||
671 | 671 | ||
672 | #ifndef BUILD_INDIVIDUAL | 672 | #ifndef BUILD_INDIVIDUAL |
673 | struct BB_applet; | 673 | struct bb_applet; |
674 | extern const struct BB_applet *find_applet_by_name(const char *name); | 674 | extern const struct bb_applet *find_applet_by_name(const char *name); |
675 | /* Returns only if applet is not found. */ | 675 | /* Returns only if applet is not found. */ |
676 | extern void run_applet_by_name(const char *name, int argc, char **argv); | 676 | extern void run_applet_by_name(const char *name, int argc, char **argv); |
677 | extern void run_current_applet_and_exit(int argc, char **argv) ATTRIBUTE_NORETURN; | 677 | extern void run_current_applet_and_exit(int argc, char **argv) ATTRIBUTE_NORETURN; |
@@ -880,7 +880,7 @@ enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */ | |||
880 | }; | 880 | }; |
881 | 881 | ||
882 | #define FILEUTILS_CP_OPTSTR "pdRfils" USE_SELINUX("c") | 882 | #define FILEUTILS_CP_OPTSTR "pdRfils" USE_SELINUX("c") |
883 | extern const struct BB_applet *current_applet; | 883 | extern const struct bb_applet *current_applet; |
884 | extern const char *applet_name; | 884 | extern const char *applet_name; |
885 | extern const char BB_BANNER[]; | 885 | extern const char BB_BANNER[]; |
886 | 886 | ||