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
/
sigqueue.c
1
#include <signal.h>
2
#include <string.h>
3
#include <unistd.h>
4
#include "syscall.h"
5
6
int sigqueue(pid_t pid, int sig, const union sigval value)
7
{
8
siginfo_t si = {
9
.si_signo = sig,
10
.si_code = -1,
11
.si_value = value,
12
};
13
return syscall3(__NR_rt_sigqueueinfo, pid, sig, (long)&si);
14
}