From a0d4ac60dc373d2f18d9861087e0054d4e8f865d Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Feb 2001 13:06:07 +0000 Subject: have "init" compiled against dietlibc (rather than glibc) on non-Intel arch's --- mdk-stage1/dietlibc/include/stdlib.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mdk-stage1/dietlibc/include/stdlib.h') diff --git a/mdk-stage1/dietlibc/include/stdlib.h b/mdk-stage1/dietlibc/include/stdlib.h index 90f2fbbb7..c5fea2608 100644 --- a/mdk-stage1/dietlibc/include/stdlib.h +++ b/mdk-stage1/dietlibc/include/stdlib.h @@ -33,5 +33,12 @@ void exit(int); extern char **environ; +#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f) +#define WIFSIGNALED(status) (!WIFSTOPPED(status) && !WIFEXITED(status)) +#define WEXITSTATUS(status) (((status) & 0xff00) >> 8) +#define WTERMSIG(status) ((status) & 0x7f) +#define WSTOPSIG(status) WEXITSTATUS(status) +#define WIFEXITED(status) (WTERMSIG(status) == 0) + #endif -- cgit v1.2.1