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

int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout)
{
	int ret;
	do {
		ret = syscall4(__NR_rt_sigtimedwait, (long)mask, (long)si, (long)timeout, SYSCALL_SIGSET_SIZE);
	} while (ret<0 && errno==EINTR);
	return ret;
}