4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 11:00:04 +08:00
Jeff Johnston c5ef1e95be 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.
2002-04-08 20:33:46 +00:00

17 lines
293 B
C

/* 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);
}