about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-01-01 08:07:26 +0100
committerrofl0r <retnyg@gmx.net>2013-01-04 20:36:34 +0100
commite895ddc0cd560ffb217c741139721a836c5f4b7f (patch)
treecb350880fa4fa30fd224f57ed8b6d637ee7858c3 /include
parent2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4 (diff)
downloadmusl-e895ddc0cd560ffb217c741139721a836c5f4b7f.tar.gz
musl-e895ddc0cd560ffb217c741139721a836c5f4b7f.tar.xz
musl-e895ddc0cd560ffb217c741139721a836c5f4b7f.zip
wait.h: add linux specific, thread-related waitpid() flags
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.
Diffstat (limited to 'include')
-rw-r--r--include/sys/wait.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h
index 7b5e8c7b..b8d6432e 100644
--- a/include/sys/wait.h
+++ b/include/sys/wait.h
@@ -33,6 +33,10 @@ pid_t wait4 (pid_t, int *, int, struct rusage *);
 #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