1 #include <sys/select.h>
3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
15 F(suseconds_t, tv_usec)
19 {void(*p)(int,fd_set*) = FD_CLR;}
22 {int(*p)(int,fd_set*) = FD_ISSET;}
25 {void(*p)(int,fd_set*) = FD_SET;}
28 {void(*p)(fd_set*) = FD_ZERO;}
30 {int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,const struct timespec*restrict,const sigset_t*restrict) = pselect;}
31 {int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;}