blob: 8d3acd82324c6abef06206f15384ccfa6193f4c6 [file] [log] [blame]
#define _GNU_SOURCE
#include <poll.h>
#include <signal.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,
_NSIG / 8);
}