Blame src/api/sys_time.c

nsz 6a2161
#include <sys/time.h>
nsz 6a2161
#define T(t) (t*)0;
nsz 6a2161
#define F(t,n) {t *y = &x.;;}
nsz 6a2161
#define C(n) switch(n){case n:;}
nsz 6a2161
static void f()
nsz 6a2161
{
Szabolcs Nagy 7ab89d
T(time_t)
nsz 6a2161
T(suseconds_t)
nsz 6a2161
T(fd_set)
nsz 6a2161
{
nsz 6a2161
struct timeval x;
nsz 6a2161
F(time_t, tv_sec)
nsz 6a2161
F(suseconds_t,tv_usec)
nsz 6a2161
}
nsz 6a2161
C(FD_SETSIZE)
nsz 6a2161
#ifndef FD_CLR
nsz 0ef264
{void(*p)(int,fd_set*) = FD_CLR;}
nsz 6a2161
#endif
nsz 6a2161
#ifndef FD_ISSET
nsz 0ef264
{int(*p)(int,fd_set*) = FD_ISSET;}
nsz 6a2161
#endif
nsz 6a2161
#ifndef FD_SET
nsz 0ef264
{void(*p)(int,fd_set*) = FD_SET;}
nsz 6a2161
#endif
nsz 6a2161
#ifndef FD_ZERO
nsz 0ef264
{void(*p)(fd_set*) = FD_ZERO;}
nsz 6a2161
#endif
nsz 0ef264
{int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;}
nsz 0ef264
{int(*p)(const char*,const struct timeval[]) = utimes;}
nsz 6a2161
}