* Makefile.am: Add signal.c to the build.
authorJonathan Pryor <jpryor@novell.com>
Thu, 30 Dec 2004 13:51:37 +0000 (13:51 -0000)
committerJonathan Pryor <jpryor@novell.com>
Thu, 30 Dec 2004 13:51:37 +0000 (13:51 -0000)
  * signal.c: Added.  Contains helper functions to wrap signal(2).

svn path=/trunk/mono/; revision=38181

support/ChangeLog
support/Makefile.am
support/signal.c [new file with mode: 0644]

index 45db24d1ef6d9ec8f12b166fb3bf51ba305f7372..79825c4ff01934b3b86e64203aa228eb5e3319fc 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
+
+       * Makefile.am: Add signal.c to the build.
+       * signal.c: Added.  Contains helper functions to wrap signal(2).
+
 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
 
        * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
index 0a0d5a2d7bac76ffe7ba82ac2448ab7873e9e460..9392d935446c4a40eaa15769e069aeaf5de9f0c7 100644 (file)
@@ -25,6 +25,7 @@ MPH_SOURCE = \
        pwd.c           \
        old-map.c       \
        serial.c        \
+       signal.c        \
        stdio.c         \
        stdlib.c        \
        sys-mman.c      \
diff --git a/support/signal.c b/support/signal.c
new file mode 100644 (file)
index 0000000..91d693d
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * <signal.h> wrapper functions.
+ */
+
+#include <signal.h>
+
+#include "mph.h"
+
+G_BEGIN_DECLS
+
+sighandler_t
+Mono_Posix_Stdlib_SIG_DFL ()
+{
+       return SIG_DFL;
+}
+
+sighandler_t
+Mono_Posix_Stdlib_SIG_ERR ()
+{
+       return SIG_ERR;
+}
+
+sighandler_t
+Mono_Posix_Stdlib_SIG_IGN ()
+{
+       return SIG_IGN;
+}
+
+void
+Mono_Posix_Stdlib_InvokeSignalHandler (int signum, sighandler_t handler)
+{
+       handler (signum);
+}
+
+G_END_DECLS
+
+/*
+ * vim: noexpandtab
+ */