projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use rt_sigprocmask, not legacy sigprocmask, syscall in pthread exit code
[oweals/musl.git]
/
src
/
signal
/
siglongjmp.c
1
#include <setjmp.h>
2
#include <signal.h>
3
#include <stdlib.h>
4
5
void siglongjmp(sigjmp_buf buf, int ret)
6
{
7
long *flag = buf + sizeof(jmp_buf)/sizeof(long);
8
sigset_t *mask = (void *)(flag + 1);
9
if (*flag)
10
sigprocmask (SIG_SETMASK, mask, NULL);
11
longjmp((void *)buf, ret);
12
}