3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
6 *******************************************************************************/
7 #define ULINUX_WNOHANG 0x00000001
8 #define ULINUX_WUNTRACED 0x00000002
9 #define ULINUX_WSTOPPED ULINUX_WUNTRACED
10 #define ULINUX_WEXITED 0x00000004
11 #define ULINUX_WCONTINUED 0x00000008
12 #define ULINUX_WNOWAIT 0x01000000/*don't reap, just poll status.*/
14 #define ULINUX_WNOTHREAD 0x20000000/*don't wait on children of other threads in
16 #define ULINUX_WALL 0x40000000/*wait on all children, regardless of type*/
17 #define ULINUX_WCLONE 0x80000000/*wait only on non-SIGCHLD children*/
19 /*first argument to waitid*/
20 #define ULINUX_P_ALL 0
21 #define ULINUX_P_PID 1
22 #define ULINUX_P_PGID 2