diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-22 13:06:07 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-22 13:06:07 +0000 |
commit | a0d4ac60dc373d2f18d9861087e0054d4e8f865d (patch) | |
tree | 92718cc3604293f2f1cbe63945bc49eb134427bf /mdk-stage1/dietlibc/include/stdlib.h | |
parent | d256d73891a4806211f9de9007ea0b465cead03b (diff) | |
download | drakx-a0d4ac60dc373d2f18d9861087e0054d4e8f865d.tar drakx-a0d4ac60dc373d2f18d9861087e0054d4e8f865d.tar.gz drakx-a0d4ac60dc373d2f18d9861087e0054d4e8f865d.tar.bz2 drakx-a0d4ac60dc373d2f18d9861087e0054d4e8f865d.tar.xz drakx-a0d4ac60dc373d2f18d9861087e0054d4e8f865d.zip |
have "init" compiled against dietlibc (rather than glibc) on non-Intel arch's
Diffstat (limited to 'mdk-stage1/dietlibc/include/stdlib.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/stdlib.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |