f0268894c038681a57dc49f9f0ba946ffdb63256
[musl] / src / linux / ppoll.c
1 #define _GNU_SOURCE
2 #include <poll.h>
3 #include "syscall.h"
4
5 int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
6 {
7         return syscall_cp(SYS_ppoll, fds, n,
8                 to ? (struct timespec []){*to} : 0, mask, __SYSCALL_SSLEN);
9 }