diff options
Diffstat (limited to 'include/sys/wait.h')
| -rw-r--r-- | include/sys/wait.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h index 2a7438d7..ad935dc8 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -4,34 +4,20 @@ #define __BITS_WAIT_H_ #include <bits/wait.h> +#define __BITS_SIGINFO_H_ +#include <bits/siginfo.h> + +struct rusage; + #define WCONTINUED 0x00000008 #define WEXITED 0x00000004 #define WNOWAIT 0x01000000 #define WSTOPPED WUNTRACED -typedef __UINT32_TYPE__ id_t; -typedef __INT64_TYPE__ pid_t; -typedef __UINT32_TYPE__ uid_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef struct { - int si_signo; - int si_code; - int si_errno; - pid_t si_pid; - uid_t si_uid; - void *si_addr; - int si_status; - union sigval si_value; -} siginfo_t; - typedef enum { P_ALL = 0, P_PID = 1, P_PGID = 2 } idtype_t; pid_t wait(int *); +pid_t wait3(int *, int, struct rusage *); int waitid(idtype_t, id_t, siginfo_t *, int); pid_t waitpid(pid_t, int *, int); |
