2 * <signal.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004-2005 Jonathan Pryor
17 typedef void (*mph_sighandler_t
)(int);
20 Mono_Posix_Stdlib_SIG_DFL (void)
26 Mono_Posix_Stdlib_SIG_ERR (void)
32 Mono_Posix_Stdlib_SIG_IGN (void)
38 Mono_Posix_Stdlib_InvokeSignalHandler (int signum
, void *handler
)
40 mph_sighandler_t _h
= (mph_sighandler_t
) handler
;
44 #ifndef PLATFORM_WIN32
46 Mono_Posix_Syscall_psignal (int sig
, const char* s
)
50 return errno
== 0 ? 0 : -1;
52 #endif /* ndef PLATFORM_WIN32 */