initial commit
[glibc.git] / conform / data / sys / wait.h-data
1 #if !defined ISO && !defined ISO99 && !defined ISO11
2 #ifdef POSIX
3 # define pid_t __pid_t
4 #endif
5
6 constant WNOHANG
7 constant WUNTRACED
8
9 macro WEXITSTATUS
10 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
11 macro WIFCONTINUED
12 # endif
13 macro WIFEXITED
14 macro WIFSIGNALED
15 macro WIFSTOPPED
16 macro WSTOPSIG
17 macro WTERMSIG
18
19 # if !defined XPG4 && !defined POSIX
20 constant WEXITED
21 constant WSTOPPED
22 # ifndef POSIX2008
23 constant WCONTINUED
24 # endif
25 constant WNOHANG
26 constant WNOWAIT
27 # endif
28
29 #if !defined XPG4 && !defined POSIX
30 type idtype_t
31
32 constant P_ALL
33 constant P_PID
34 constant P_PGID
35
36 type id_t
37
38 type siginfo_t
39
40 element siginfo_t int si_signo
41 element siginfo_t int si_errno
42 element siginfo_t int si_code
43 element siginfo_t pid_t si_pid
44 element siginfo_t uid_t si_uid
45 element siginfo_t {void*} si_addr
46 element siginfo_t int si_status
47 // Bug 23821: si_band has type int on sparc64.
48 xfail[sparc64-linux]-element siginfo_t long si_band
49 # ifndef XPG42
50 element siginfo_t {union sigval} si_value
51 # endif
52 #endif
53
54 #if !defined POSIX && !defined XPG4 && !defined XOPEN2K8 && !defined POSIX2008
55 type {struct rusage}
56
57 element {struct rusage} {struct timeval} ru_utime
58 element {struct rusage} {struct timeval} ru_stime
59 #endif
60
61 #if !defined POSIX
62 type pid_t
63 #endif
64
65 function pid_t wait (int*)
66 #if !defined XPG4 && !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
67 function pid_t wait3 (int*, int, struct rusage*)
68 #endif
69 #if !defined XPG4 && !defined POSIX
70 function int waitid (idtype_t, id_t, siginfo_t*, int)
71 #endif
72 function pid_t waitpid (pid_t, int*, int)
73
74 #if !defined XPG4 && !defined POSIX
75 allow-header signal.h
76 allow-header sys/resource.h
77
78 allow si_*
79 allow W*
80 allow P_*
81 allow BUS_
82 allow CLD_
83 allow FPE_
84 allow ILL_
85 allow POLL_
86 allow SEGV_
87 allow SI_
88 allow TRAP_
89 #endif
90 allow *_t
91 #endif