| OLD | NEW |
| 1 #define _GNU_SOURCE | 1 #define _GNU_SOURCE |
| 2 #include <poll.h> | 2 #include <poll.h> |
| 3 #include <signal.h> | 3 #include <signal.h> |
| 4 #include "syscall.h" | 4 #include "syscall.h" |
| 5 | 5 |
| 6 int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_
t *mask) | 6 int ppoll(struct pollfd* fds, |
| 7 { | 7 nfds_t n, |
| 8 » return syscall_cp(SYS_ppoll, fds, n, | 8 const struct timespec* to, |
| 9 » » to ? (struct timespec []){*to} : 0, mask, _NSIG/8); | 9 const sigset_t* mask) { |
| 10 return syscall_cp(SYS_ppoll, fds, n, to ? (struct timespec[]){*to} : 0, mask, |
| 11 _NSIG / 8); |
| 10 } | 12 } |
| OLD | NEW |