summaryrefslogtreecommitdiff
path: root/src/signal/sigtimedwait.c
blob: f62db2f315caef19b20b587f7daefe834a4beed4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <signal.h>
#include <errno.h>
#include "syscall.h"
#include "libc.h"

int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout)
{
	int ret;
	do ret = syscall_cp(SYS_rt_sigtimedwait, mask,
		si, timeout, __SYSCALL_SSLEN);
	while (ret<0 && errno==EINTR);
	return ret;
}