mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
c5ef1e95be
* 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.
17 lines
293 B
C
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);
|
|
}
|