0.9.1.59:
[sbcl.git] / contrib / sb-posix / alien / waitpid-macros.c
1 #include <sys/types.h>
2 #include <sys/wait.h>
3
4 int wifexited(int status) {
5     return WIFEXITED(status);
6 }
7
8 int wexitstatus(int status) {
9     return WEXITSTATUS(status);
10 }
11
12 int wifsignaled(int status) {
13     return WIFSIGNALED(status);
14 }
15
16 int wtermsig(int status) {
17     return WTERMSIG(status);
18 }
19
20 int wifstopped(int status) {
21     return WIFSTOPPED(status);
22 }
23
24 int wstopsig(int status) {
25     return WSTOPSIG(status);
26 }
27
28 /* FIXME: POSIX also defines WIFCONTINUED, but that appears not to
29    exist on at least Linux... */