summaryrefslogtreecommitdiff
path: root/src/linux/ppoll.c
blob: f0268894c038681a57dc49f9f0ba946ffdb63256 (plain) (blame)
1
2
3
4
5
6
7
8
9
#define _GNU_SOURCE
#include <poll.h>
#include "syscall.h"

int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
{
	return syscall_cp(SYS_ppoll, fds, n,
		to ? (struct timespec []){*to} : 0, mask, __SYSCALL_SSLEN);
}