aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-10 21:38:30 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-10 21:38:30 +0000
commit48b6c559ccf5bc74eaa7e334310e9edf367033e2 (patch)
tree14183fd728ce51ae10baee70f7d8f72c39d30649 /include/libbb.h
parent04c078dac604c21cf593a3298f788f69b7f739e6 (diff)
downloadbusybox-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.h10
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);
608int write_pidfile(const char *path); 608int 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;
623extern int die_sleep; 623extern int die_sleep;
624extern int xfunc_error_retval; 624extern int xfunc_error_retval;
625extern jmp_buf die_jmp; 625extern jmp_buf die_jmp;
626extern void sleep_and_die(void) ATTRIBUTE_NORETURN; 626extern void xfunc_die(void) ATTRIBUTE_NORETURN;
627extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; 627extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE;
628extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); 628extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
629extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); 629extern 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
673struct BB_applet; 673struct bb_applet;
674extern const struct BB_applet *find_applet_by_name(const char *name); 674extern 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. */
676extern void run_applet_by_name(const char *name, int argc, char **argv); 676extern void run_applet_by_name(const char *name, int argc, char **argv);
677extern void run_current_applet_and_exit(int argc, char **argv) ATTRIBUTE_NORETURN; 677extern 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")
883extern const struct BB_applet *current_applet; 883extern const struct bb_applet *current_applet;
884extern const char *applet_name; 884extern const char *applet_name;
885extern const char BB_BANNER[]; 885extern const char BB_BANNER[];
886 886