Merge branch 'master' of github.com:thepowersgang/acess2
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / sys / wait.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * sys/wait.h
6  * - Waiting
7  */
8 #ifndef _LIBPOSIX__SYS__WAIT_H_
9 #define _LIBPOSIX__SYS__WAIT_H_
10
11 #include <sys/types.h>
12
13 // POSIX, waitpid()
14 #define WNOHANG 0x01
15 #define WUNTRACED       0x02
16
17 // POSIX, status values
18 #define WEXITSTATUS(v)  v
19 #define WIFCONTINUED(v) 0
20
21 // POSIX/XSI, waitid(options)
22 #define WEXITED         0x10
23 #define WSTOPPED        0x20
24 #define WCONTINUED      0x40
25 #define WNOWAIT         0x80
26
27 // POSIX/XSI, idtype_t
28 typedef enum
29 {
30         P_ALL,
31         P_PID,
32         P_PGID
33 } idtype_t;
34
35 // POSIX
36 extern pid_t    wait(int *);
37 // POSIX/XSI
38 //extern int    waitid(idtype_t, id_t, siginfo_t *, int);
39 // POSIX
40 extern pid_t    waitpid(pid_t, int *, int);
41
42
43 #endif
44

UCC git Repository :: git.ucc.asn.au