summaryrefslogtreecommitdiff
path: root/src/signal/sigqueue.c
blob: ce3abf6c9cb3969590173ffdaf09de25c066add6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include "syscall.h"

int sigqueue(pid_t pid, int sig, const union sigval value)
{
	siginfo_t si = {
		.si_signo = sig,
		.si_code = -1,
		.si_value = value,
	};
	return syscall3(__NR_rt_sigqueueinfo, pid, sig, (long)&si);
}