wait.h: add linux specific, thread-related waitpid() flags
authorrofl0r <retnyg@gmx.net>
Tue, 1 Jan 2013 07:07:26 +0000 (08:07 +0100)
committerrofl0r <retnyg@gmx.net>
Fri, 4 Jan 2013 19:36:34 +0000 (20:36 +0100)
these flags are needed in order to be able to handle lwp id's
which the kernel returns after clone() calls for new threads
via ptrace(PTRACE_GETEVENTMSG).

fortunately, they're the same for all archs and in the reserved
namespace.

include/sys/wait.h

index 7b5e8c7..b8d6432 100644 (file)
@@ -33,6 +33,10 @@ pid_t wait4 (pid_t, int *, int, struct rusage *);
 #define WCONTINUED 8
 #define WNOWAIT    0x1000000
 
 #define WCONTINUED 8
 #define WNOWAIT    0x1000000
 
+#define __WNOTHREAD 0x20000000
+#define __WALL      0x40000000
+#define __WCLONE    0x80000000
+
 #define P_ALL  0
 #define P_PID  1
 #define P_PGID 2
 #define P_ALL  0
 #define P_PID  1
 #define P_PGID 2