summaryrefslogtreecommitdiff
path: root/src/signal/sigsetjmp_tail.c
blob: 252529a4028a58ec730033f2543c9cd742f3f915 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <setjmp.h>
#include <signal.h>
#include "syscall.h"
#include "libc.h"

hidden int __sigsetjmp_tail(sigjmp_buf jb, int ret)
{
	void *p = jb->__ss;
	__syscall(SYS_rt_sigprocmask, SIG_SETMASK, ret?p:0, ret?0:p, _NSIG/8);
	return ret;
}