diff options
author | Roland McGrath <roland@gnu.org> | 2004-09-28 01:42:49 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-09-28 01:42:49 +0000 |
commit | a044c713b054695326df96e7710dd5c8f80ad8c2 (patch) | |
tree | d1a0d23700e585670175a522246f43ed88fcca66 /stdlib | |
parent | c5e2501b0b0fd773dc6f1037b5aabf862716b94d (diff) | |
download | glibc-a044c713b054695326df96e7710dd5c8f80ad8c2.zip glibc-a044c713b054695326df96e7710dd5c8f80ad8c2.tar.gz glibc-a044c713b054695326df96e7710dd5c8f80ad8c2.tar.bz2 |
* posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
* posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
* stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
* sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
[WCONTINUED] (__WIFCONTINUED): New macro.
(__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
branches.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/stdlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index dc0c712..e4f7936 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -88,6 +88,9 @@ typedef union # define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status)) # define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status)) # define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status)) +# ifdef __WIFCONTINUED +# define WIFCONTINUED(status) __WIFCONTINUED(__WAIT_INT(status)) +# endif #endif /* X/Open and <sys/wait.h> not included. */ __BEGIN_NAMESPACE_STD |