about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-28 23:37:04 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-28 23:37:04 +0100
commitf6abd970284a06380cd9d905f43da104bd49fc95 (patch)
tree568235629b3422bf7683cbfa3e4308e7115a045e /bits
parentf9c3cf286479da5d8a6ea2288f9f2c731896cd6f (diff)
downloadglibc-f6abd970284a06380cd9d905f43da104bd49fc95.tar.gz
glibc-f6abd970284a06380cd9d905f43da104bd49fc95.tar.xz
glibc-f6abd970284a06380cd9d905f43da104bd49fc95.zip
hurd: Add WSTOPPED/WCONTINUED/WEXITED/WNOWAIT support [BZ #23091]
The new __proc_waitid RPC now expects WEXITED to be passed, allowing to
properly implement waitid, and thus define the missing W* macros
(according to FreeBSD values).
Diffstat (limited to 'bits')
-rw-r--r--bits/waitflags.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bits/waitflags.h b/bits/waitflags.h
index a2f9646b22..82abdf7d50 100644
--- a/bits/waitflags.h
+++ b/bits/waitflags.h
@@ -24,3 +24,11 @@
 /* Bits in the third argument to `waitpid'.  */
 #define	WNOHANG		1	/* Don't block waiting.  */
 #define	WUNTRACED	2	/* Report status of stopped children.  */
+
+/* Bits in the fourth argument to `waitid'.  */
+#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
+# define WSTOPPED	WUNTRACED	/* Report stopped child. */
+# define WCONTINUED	4		/* Report continued child.  */
+# define WNOWAIT	8		/* Don't reap, just poll status.  */
+# define WEXITED	16		/* Report dead child.  */
+#endif