1#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
2type time_t
3type suseconds_t
4
5type {struct timeval}
6element {struct timeval} time_t tv_sec
7element {struct timeval} suseconds_t tv_usec
8
9type sigset_t
10
11type {struct timespec}
12element {struct timespec} time_t tv_sec
13// Bug 16437: tv_nsec has wrong type.
14xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
15
16type fd_set
17#if defined XPG4 || defined XPG42 || defined UNIX98
18element fd_set long fds_bits []
19#endif
20
21macro FD_CLR
22macro FD_ISSET
23macro FD_SET
24macro FD_ZERO
25
26macro FD_SETSIZE
27
28#if defined XOPEN2K || defined POSIX2008 || defined XOPEN2K8
29function int pselect (int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*)
30#endif
31function int select (int, fd_set*, fd_set*, fd_set*, struct timeval*)
32
33allow-header signal.h
34allow-header sys/time.h
35allow-header time.h
36#endif
37