Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / support / sys-wait.c
1 /*
2  * <sys/wait.h> wrapper functions.
3  *
4  * Authors:
5  *   Jonathan Pryor (jonpryor@vt.edu)
6  *
7  * Copyright (C) 2004 Jonathan Pryor
8  */
9
10 #include <sys/types.h>
11 #include <sys/wait.h>
12
13 #include <glib.h>
14
15 #include "mph.h"
16 #include "map.h"
17
18 G_BEGIN_DECLS
19
20 gint32
21 Mono_Posix_Syscall_WIFEXITED (gint32 status)
22 {
23         return WIFEXITED (status);
24 }
25
26 gint32
27 Mono_Posix_Syscall_WEXITSTATUS (gint32 status)
28 {
29         return WEXITSTATUS (status);
30 }
31
32 gint32
33 Mono_Posix_Syscall_WIFSIGNALED (gint32 status)
34 {
35         return WIFSIGNALED (status);
36 }
37
38 gint32
39 Mono_Posix_Syscall_WTERMSIG (gint32 status)
40 {
41         return WTERMSIG (status);
42 }
43
44 gint32
45 Mono_Posix_Syscall_WIFSTOPPED (gint32 status)
46 {
47         return WIFSTOPPED (status);
48 }
49
50 gint32
51 Mono_Posix_Syscall_WSTOPSIG (gint32 status)
52 {
53         return WSTOPSIG (status);
54 }
55
56 G_END_DECLS
57
58 /*
59  * vim: noexpandtab
60  */