include signal.h to avoid thorny __sigcontext/sigcontext issues
[musl] / include / sys / wait.h
1 #ifndef _SYS_WAIT_H
2 #define _SYS_WAIT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #include <signal.h>
8
9 #define __NEED_pid_t
10 #define __NEED_id_t
11 #define __NEED_siginfo_t
12 #include <bits/alltypes.h>
13
14 typedef int idtype_t;
15
16 pid_t wait (int *);
17 int waitid (idtype_t, id_t, siginfo_t *, int);
18 pid_t waitpid (pid_t, int *, int );
19
20 #ifdef _GNU_SOURCE
21 #include <sys/resource.h>
22 pid_t wait3 (int *, int, struct rusage *);
23 pid_t wait4 (pid_t, int *, int, struct rusage *);
24 #endif
25
26 #include <bits/wait.h>
27 #include <bits/wexitstatus.h>
28
29 #ifdef __cplusplus
30 }
31 #endif
32 #endif