From f6abd970284a06380cd9d905f43da104bd49fc95 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 28 Dec 2020 23:37:04 +0100 Subject: 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). --- bits/waitflags.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bits') 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 -- cgit v1.2.3-65-gdbad