pselect_time32.c 366 B

123456789
  1. #include "time32.h"
  2. #include <time.h>
  3. #include <sys/select.h>
  4. int __pselect_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec32 *restrict ts32, const sigset_t *restrict mask)
  5. {
  6. return pselect(n, rfds, wfds, efds, !ts32 ? 0 : (&(struct timespec){
  7. .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
  8. }