1 2 3 4 5
static inline int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) { return poll(fds, nfds, timeout ? timeout->tv_sec * 1000 : 500); }