diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 8c652e2d7..07fe20dac 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1093,10 +1093,19 @@ pid_t wait_any_nohang(int *wstat) FAST_FUNC; | |||
1093 | */ | 1093 | */ |
1094 | int wait4pid(pid_t pid) FAST_FUNC; | 1094 | int wait4pid(pid_t pid) FAST_FUNC; |
1095 | int wait_for_exitstatus(pid_t pid) FAST_FUNC; | 1095 | int wait_for_exitstatus(pid_t pid) FAST_FUNC; |
1096 | /************************************************************************/ | ||
1097 | /* spawn_and_wait/run_nofork_applet/run_applet_no_and_exit need to work */ | ||
1098 | /* carefully together to reinit some global state while not disturbing */ | ||
1099 | /* other. Be careful if you change them. Consult docs/nofork_noexec.txt */ | ||
1100 | /************************************************************************/ | ||
1096 | /* Same as wait4pid(spawn(argv)), but with NOFORK/NOEXEC if configured: */ | 1101 | /* Same as wait4pid(spawn(argv)), but with NOFORK/NOEXEC if configured: */ |
1097 | int spawn_and_wait(char **argv) FAST_FUNC; | 1102 | int spawn_and_wait(char **argv) FAST_FUNC; |
1098 | /* Does NOT check that applet is NOFORK, just blindly runs it */ | 1103 | /* Does NOT check that applet is NOFORK, just blindly runs it */ |
1099 | int run_nofork_applet(int applet_no, char **argv) FAST_FUNC; | 1104 | int run_nofork_applet(int applet_no, char **argv) FAST_FUNC; |
1105 | #ifndef BUILD_INDIVIDUAL | ||
1106 | extern int find_applet_by_name(const char *name) FAST_FUNC; | ||
1107 | extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC; | ||
1108 | #endif | ||
1100 | 1109 | ||
1101 | /* Helpers for daemonization. | 1110 | /* Helpers for daemonization. |
1102 | * | 1111 | * |
@@ -1303,11 +1312,6 @@ const struct hwtype *get_hwtype(const char *name) FAST_FUNC; | |||
1303 | const struct hwtype *get_hwntype(int type) FAST_FUNC; | 1312 | const struct hwtype *get_hwntype(int type) FAST_FUNC; |
1304 | 1313 | ||
1305 | 1314 | ||
1306 | #ifndef BUILD_INDIVIDUAL | ||
1307 | extern int find_applet_by_name(const char *name) FAST_FUNC; | ||
1308 | extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC; | ||
1309 | #endif | ||
1310 | |||
1311 | #ifdef HAVE_MNTENT_H | 1315 | #ifdef HAVE_MNTENT_H |
1312 | extern int match_fstype(const struct mntent *mt, const char *fstypes) FAST_FUNC; | 1316 | extern int match_fstype(const struct mntent *mt, const char *fstypes) FAST_FUNC; |
1313 | extern struct mntent *find_mount_point(const char *name, int subdir_too) FAST_FUNC; | 1317 | extern struct mntent *find_mount_point(const char *name, int subdir_too) FAST_FUNC; |