summaryrefslogtreecommitdiff
path: root/include/sys/wait.h
blob: 1325885e358d1cb069f381e256fd1e165209fe54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __WAIT_H
#define __WAIT_H

#define __BITS_WAIT_H_
#include <bits/wait.h> // for WUNTRACED
#include <signal.h>    // for siginfo_t
#include <sys/types.h> // for pid_t, id_t

#define __BITS_SIGINFO_H_
#include <bits/siginfo.h>

struct rusage;

#define WCONTINUED 0x00000008
#define WEXITED	   0x00000004
#define WNOWAIT	   0x01000000
#define WSTOPPED   WUNTRACED

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);

#endif