summaryrefslogtreecommitdiff
path: root/src/signal/siglongjmp.c
blob: b644cebb98f60b4526919a9637ed5803426e67a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <setjmp.h>
#include <signal.h>
#include "syscall.h"
#include "pthread_impl.h"

_Noreturn void siglongjmp(sigjmp_buf buf, int ret)
{
	if (buf->__fl) __restore_sigs(buf->__ss);
	longjmp(buf, ret);
}