* signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings....
[mono.git] / support / signal.c
1 /*
2  * <signal.h> wrapper functions.
3  */
4
5 #include <signal.h>
6
7 #include "mph.h"
8
9 G_BEGIN_DECLS
10
11 typedef void (*mph_sighandler_t)(int);
12
13 mph_sighandler_t
14 Mono_Posix_Stdlib_SIG_DFL (void)
15 {
16         return SIG_DFL;
17 }
18
19 mph_sighandler_t
20 Mono_Posix_Stdlib_SIG_ERR (void)
21 {
22         return SIG_ERR;
23 }
24
25 mph_sighandler_t
26 Mono_Posix_Stdlib_SIG_IGN (void)
27 {
28         return SIG_IGN;
29 }
30
31 void
32 Mono_Posix_Stdlib_InvokeSignalHandler (int signum, mph_sighandler_t handler)
33 {
34         handler (signum);
35 }
36
37 G_END_DECLS
38
39 /*
40  * vim: noexpandtab
41  */