Retro68/gcc/newlib/libc/sys/linux/siglongjmp.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

19 lines
380 B
C

/* libc/sys/linux/siglongjmp.c - siglongjmp function */
/* Copyright 2002, Red Hat Inc. */
#include <setjmp.h>
#include <signal.h>
#include <machine/weakalias.h>
void
__libc_siglongjmp (sigjmp_buf env, int val)
{
if (env.__is_mask_saved)
sigprocmask (SIG_SETMASK, &env.__saved_mask, NULL);
__libc_longjmp (env.__buf, val);
}
weak_alias(__libc_siglongjmp,siglongjmp);