select_time32.c 341 B

12345678910
  1. #include "time32.h"
  2. #include <time.h>
  3. #include <sys/time.h>
  4. #include <sys/select.h>
  5. int __select_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval32 *restrict tv32)
  6. {
  7. return select(n, rfds, wfds, efds, !tv32 ? 0 : (&(struct timeval){
  8. .tv_sec = tv32->tv_sec, .tv_usec = tv32->tv_usec}));
  9. }