blob: d0eaf1df414e6843a3f1173492399087581a5a44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* <signal.h> wrapper functions.
*/
#include <signal.h>
#include "mph.h"
G_BEGIN_DECLS
typedef void (*mph_sighandler_t)(int);
void*
Mono_Posix_Stdlib_SIG_DFL (void)
{
return SIG_DFL;
}
void*
Mono_Posix_Stdlib_SIG_ERR (void)
{
return SIG_ERR;
}
void*
Mono_Posix_Stdlib_SIG_IGN (void)
{
return SIG_IGN;
}
void
Mono_Posix_Stdlib_InvokeSignalHandler (int signum, void *handler)
{
mph_sighandler_t _h = (mph_sighandler_t) handler;
_h (signum);
}
G_END_DECLS
/*
* vim: noexpandtab
*/
|