summaryrefslogtreecommitdiff
path: root/lib/libc/signal/sigtimedwait.c
blob: 0be3c712bec02731a4934052602ae50d3725a380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


#include <signal.h>  // for siginfo_t, sigset_t, sigtimedwait
#include <syscall.h> // for __syscall_4, syscall
#include <time.h>

struct timespec;

#define _NSIG 64

int sigtimedwait(const sigset_t *restrict set, siginfo_t *restrict info, const struct timespec *restrict timeout)
{
	return syscall(rt_sigtimedwait, set, info, timeout, _NSIG / 8);
}