diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-09-06 17:48:28 +0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-13 10:07:03 -0700 |
commit | 733e6877d7b1146ecb5c796f4d249843101a7b5f (patch) | |
tree | deef7abf4f88e6e0ba4ac326d351063a73399a8d /system/include/libc/sys/wait.h | |
parent | 4c3c7df30af6dc9ba6309e527a5173d9078c56b9 (diff) |
Update to musl-0.9.13 headers.
Diffstat (limited to 'system/include/libc/sys/wait.h')
-rw-r--r-- | system/include/libc/sys/wait.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/libc/sys/wait.h b/system/include/libc/sys/wait.h index b6dfe01d..a7ad7cd1 100644 --- a/system/include/libc/sys/wait.h +++ b/system/include/libc/sys/wait.h @@ -45,8 +45,8 @@ pid_t wait4 (pid_t, int *, int, struct rusage *); #define WSTOPSIG(s) WEXITSTATUS(s) #define WCOREDUMP(s) ((s) & 0x80) #define WIFEXITED(s) (!WTERMSIG(s)) -#define WIFSTOPPED(s) (((s) & 0xff) == 0x7f) -#define WIFSIGNALED(s) (((signed char) (((s) & 0x7f) + 1) >> 1) > 0) +#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00) +#define WIFSIGNALED(s) (((s)&0xffff)-1 < 0xffu) #define WIFCONTINUED(s) ((s) == 0xffff) #ifdef __cplusplus |