summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenys Vlasenko2009-06-07 16:02:00 +0200
committerDenys Vlasenko2009-06-07 16:02:00 +0200
commit8f24f9812df8dec34a991b2c572092639586f154 (patch)
treefcfc01da5aa08243cd1f0ea3bc2f95a8d3206ada /include/libbb.h
parentd6b05eb9c27196ebe89b180d71ad86bf42e97002 (diff)
downloadbusybox-8f24f9812df8dec34a991b2c572092639586f154.zip
busybox-8f24f9812df8dec34a991b2c572092639586f154.tar.gz
stop using non-standard macro, use WEXITSTATUS instead
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 963e2af..62a60f9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -765,12 +765,8 @@ pid_t safe_waitpid(pid_t pid, int *wstat, int options) FAST_FUNC;
*/
int wait4pid(pid_t pid) FAST_FUNC;
pid_t wait_any_nohang(int *wstat) FAST_FUNC;
-#define wait_crashed(w) ((w) & 127)
-#define wait_exitcode(w) ((w) >> 8)
-#define wait_stopsig(w) ((w) >> 8)
-#define wait_stopped(w) (((w) & 127) == 127)
/* wait4pid(spawn(argv)) + NOFORK/NOEXEC (if configured) */
-pid_t spawn_and_wait(char **argv) FAST_FUNC;
+int spawn_and_wait(char **argv) FAST_FUNC;
struct nofork_save_area {
jmp_buf die_jmp;
const char *applet_name;