1570af302Sopenharmony_ci#include <sys/select.h>
2570af302Sopenharmony_ci#define T(t) (t*)0;
3570af302Sopenharmony_ci#define F(t,n) {t *y = &x.n;}
4570af302Sopenharmony_ci#define C(n) switch(n){case n:;}
5570af302Sopenharmony_cistatic void f()
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ciT(time_t)
8570af302Sopenharmony_ciT(suseconds_t)
9570af302Sopenharmony_ciT(sigset_t)
10570af302Sopenharmony_ciT(struct timespec)
11570af302Sopenharmony_ciT(fd_set)
12570af302Sopenharmony_ci{
13570af302Sopenharmony_cistruct timeval x;
14570af302Sopenharmony_ciF(time_t, tv_sec)
15570af302Sopenharmony_ciF(suseconds_t, tv_usec)
16570af302Sopenharmony_ci}
17570af302Sopenharmony_ciC(FD_SETSIZE)
18570af302Sopenharmony_ci#ifndef FD_CLR
19570af302Sopenharmony_ci{void(*p)(int,fd_set*) = FD_CLR;}
20570af302Sopenharmony_ci#endif
21570af302Sopenharmony_ci#ifndef FD_ISSET
22570af302Sopenharmony_ci{int(*p)(int,fd_set*) = FD_ISSET;}
23570af302Sopenharmony_ci#endif
24570af302Sopenharmony_ci#ifndef FD_SET
25570af302Sopenharmony_ci{void(*p)(int,fd_set*) = FD_SET;}
26570af302Sopenharmony_ci#endif
27570af302Sopenharmony_ci#ifndef FD_ZERO
28570af302Sopenharmony_ci{void(*p)(fd_set*) = FD_ZERO;}
29570af302Sopenharmony_ci#endif
30570af302Sopenharmony_ci{int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,const struct timespec*restrict,const sigset_t*restrict) = pselect;}
31570af302Sopenharmony_ci{int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;}
32570af302Sopenharmony_ci}
33