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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-04-09 00:33:46 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-04-09 00:33:46 +0400
commitc5ef1e95be66c5d1b456fa8518ca3902f9efd581 (patch)
tree4ef29d3868b2e45975955479c03a0b5db627d1f4 /newlib/libc/sys/linux/siglongjmp.c
parent175c5e4c4ddae8d6882ecd6932d40ff58fa915bd (diff)
2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/setjmp.h: Add sigjmp_buf type, siglongjmp prototype, and sigsetjmp macro definition. * libc/sys/linux/siglongjmp.c: New file. * libc/sys/linux/Makefile.am: Add support for siglongjmp. * libc/sys/linux/Makefile.in: Regenerated.
Diffstat (limited to 'newlib/libc/sys/linux/siglongjmp.c')
-rw-r--r--newlib/libc/sys/linux/siglongjmp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/siglongjmp.c b/newlib/libc/sys/linux/siglongjmp.c
new file mode 100644
index 000000000..075ed4421
--- /dev/null
+++ b/newlib/libc/sys/linux/siglongjmp.c
@@ -0,0 +1,16 @@
+/* libc/sys/linux/siglongjmp.c - siglongjmp function */
+
+/* Copyright 2002, Red Hat Inc. */
+
+
+#include <setjmp.h>
+#include <signal.h>
+
+void
+siglongjmp (sigjmp_buf env, int val)
+{
+ if (env.__is_mask_saved)
+ sigprocmask (SIG_SETMASK, &env.__saved_mask, NULL);
+
+ longjmp (env.__buf, val);
+}