2005-04-04 Zoltan Varga <vargaz@freemail.hu>
[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/gtypes.h>
14
15 #include "map.h"
16
17 G_BEGIN_DECLS
18
19 gint32
20 Mono_Posix_Syscall_WIFEXITED (gint32 status)
21 {
22         return WIFEXITED (status);
23 }
24
25 gint32
26 Mono_Posix_Syscall_WEXITSTATUS (gint32 status)
27 {
28         return WEXITSTATUS (status);
29 }
30
31 gint32
32 Mono_Posix_Syscall_WIFSIGNALED (gint32 status)
33 {
34         return WIFSIGNALED (status);
35 }
36
37 gint32
38 Mono_Posix_Syscall_WTERMSIG (gint32 status)
39 {
40         return WTERMSIG (status);
41 }
42
43 gint32
44 Mono_Posix_Syscall_WIFSTOPPED (gint32 status)
45 {
46         return WIFSTOPPED (status);
47 }
48
49 gint32
50 Mono_Posix_Syscall_WSTOPSIG (gint32 status)
51 {
52         return WSTOPSIG (status);
53 }
54
55 G_END_DECLS
56
57 /*
58  * vim: noexpandtab
59  */