add ere backref regression test
[libc-test] / src / api / sys_time.c
1 #include <sys/time.h>
2 #define T(t) (t*)0;
3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
5 static void f()
6 {
7 T(time_t)
8 T(suseconds_t)
9 T(fd_set)
10 {
11 struct timeval x;
12 F(time_t, tv_sec)
13 F(suseconds_t,tv_usec)
14 }
15 C(FD_SETSIZE)
16 #ifndef FD_CLR
17 {void(*p)(int,fd_set*) = FD_CLR;}
18 #endif
19 #ifndef FD_ISSET
20 {int(*p)(int,fd_set*) = FD_ISSET;}
21 #endif
22 #ifndef FD_SET
23 {void(*p)(int,fd_set*) = FD_SET;}
24 #endif
25 #ifndef FD_ZERO
26 {void(*p)(fd_set*) = FD_ZERO;}
27 #endif
28 {int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;}
29 {int(*p)(const char*,const struct timeval[]) = utimes;}
30 }