about summary refs log tree commit diff
path: root/src/signal/siglongjmp.c
blob: 9b4a5398cc72add3efbb36b60f7590aa22ce51b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
#include "syscall.h"

void siglongjmp(sigjmp_buf buf, int ret)
{
	if (buf->__fl)
		__syscall(SYS_rt_sigprocmask, SIG_SETMASK, buf->__ss, 0, 8);
	longjmp(buf->__jb, ret);
}