ppoll_time32.c 299 B

12345678910
  1. #include "time32.h"
  2. #define _GNU_SOURCE
  3. #include <time.h>
  4. #include <poll.h>
  5. int __ppoll_time32(struct pollfd *fds, nfds_t n, const struct timespec32 *ts32, const sigset_t *mask)
  6. {
  7. return ppoll(fds, n, !ts32 ? 0 : (&(struct timespec){
  8. .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
  9. }