From a044c713b054695326df96e7710dd5c8f80ad8c2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 28 Sep 2004 01:42:49 +0000 Subject: * 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. --- stdlib/stdlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stdlib/stdlib.h') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index dc0c712df7..e4f79369a6 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 not included. */ __BEGIN_NAMESPACE_STD -- cgit v1.2.3