blob: 2ba1239b6b3883c89cfc042138b37ed23fcf94d4 [file] [log] [blame]
/*
* siglongjmp.c
*
* sigsetjmp() is a macro, by necessity (it's either that or write
* it in assembly), but siglongjmp() is a normal function.
*/
#include <setjmp.h>
#include <signal.h>
__noreturn siglongjmp(sigjmp_buf buf, int retval)
{
sigprocmask(SIG_SETMASK, &buf->__sigs, NULL);
longjmp(buf->__jmpbuf, retval);
}