Merge branch 'master' of ted.mutabah.net: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 // POSIX, waitpid()
12 #define WNOHANG 0x01
13 #define WUNTRACED       0x02
14
15 // POSIX, status values
16 #define WEXITSTATUS(v)  v
17 #define WIFCONTINUED(v) 0
18
19 // POSIX/XSI, waitid(options)
20 #define WEXITED         0x10
21 #define WSTOPPED        0x20
22 #define WCONTINUED      0x40
23 #define WNOWAIT         0x80
24
25 // POSIX/XSI, idtype_t
26 typedef enum
27 {
28         P_ALL,
29         P_PID,
30         P_PGID
31 } idtype_t;
32
33 // POSIX
34 extern pid_t    wait(int *);
35 // POSIX/XSI
36 //extern int    waitid(idtype_t, id_t, siginfo_t *, int);
37 // POSIX
38 extern pid_t    waitpid(pid_t, int *, int);
39
40
41 #endif
42

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