Welcome to mirror list, hosted at ThFree Co, Russian Federation.

signal.c « support - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 763019fecbfac461f1580d12a8c1a475e03700e9 (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
/*
 * <signal.h> wrapper functions.
 */

#include <signal.h>

#include "mph.h"

G_BEGIN_DECLS

typedef void (*mph_sighandler_t)(int);

mph_sighandler_t
Mono_Posix_Stdlib_SIG_DFL (void)
{
	return SIG_DFL;
}

mph_sighandler_t
Mono_Posix_Stdlib_SIG_ERR (void)
{
	return SIG_ERR;
}

mph_sighandler_t
Mono_Posix_Stdlib_SIG_IGN (void)
{
	return SIG_IGN;
}

void
Mono_Posix_Stdlib_InvokeSignalHandler (int signum, mph_sighandler_t handler)
{
	handler (signum);
}

G_END_DECLS

/*
 * vim: noexpandtab
 */