diff options
Diffstat (limited to 'support/sys-wait.c')
-rw-r--r-- | support/sys-wait.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/support/sys-wait.c b/support/sys-wait.c new file mode 100644 index 00000000000..12a4b1701a7 --- /dev/null +++ b/support/sys-wait.c @@ -0,0 +1,59 @@ +/* + * <sys/wait.h> wrapper functions. + * + * Authors: + * Jonathan Pryor (jonpryor@vt.edu) + * + * Copyright (C) 2004 Jonathan Pryor + */ + +#include <sys/types.h> +#include <sys/wait.h> + +#include <glib/gtypes.h> + +#include "map.h" + +G_BEGIN_DECLS + +gint32 +Mono_Posix_Syscall_WIFEXITED (gint32 status) +{ + return WIFEXITED (status); +} + +gint32 +Mono_Posix_Syscall_WEXITSTATUS (gint32 status) +{ + return WEXITSTATUS (status); +} + +gint32 +Mono_Posix_Syscall_WIFSIGNALED (gint32 status) +{ + return WIFSIGNALED (status); +} + +gint32 +Mono_Posix_Syscall_WTERMSIG (gint32 status) +{ + return WTERMSIG (status); +} + +gint32 +Mono_Posix_Syscall_WIFSTOPPED (gint32 status) +{ + return WIFSTOPPED (status); +} + +gint32 +Mono_Posix_Syscall_WSTOPSIG (gint32 status) +{ + return WSTOPSIG (status); +} + +G_END_DECLS + +/* + * vim: noexpandtab + */ |