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