summaryrefslogtreecommitdiff
path: root/xc/test/xsuite/port/INC/sys/wait.h
blob: e602edfe5af6bbe672ccc670e760b54d3906d453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* $XConsortium$ */
#define WNOHANG		1
#define WUNTRACED	2

#define WIFEXITED(s)	(((s) & 0xff) == 0)
#define WEXITSTATUS(s)	((s)>>8 & 0xff)

#define WIFSIGNALED(s)	(((s) & 0xff00) == 0 && WTERMSIG(s) != 0)
#define WTERMSIG(s)	((s) & 0x7f)

#define WIFSTOPPED(s)	(((s) & 0xff) == 0177)
#define WSTOPSIG(s)	((s)>>8 & 0xff)

extern pid_t wait(), waitpid();