1 | #ifndef _SYS_SELECT_H |
2 | #include <misc/sys/select.h> |
3 | |
4 | #ifndef _ISOMAC |
5 | /* Now define the internal interfaces. */ |
6 | # if __TIMESIZE == 64 |
7 | # define __pselect64 __pselect |
8 | # define __select64 __select |
9 | #else |
10 | # include <struct___timespec64.h> |
11 | # include <struct___timeval64.h> |
12 | |
13 | extern int __pselect64 (int __nfds, fd_set *__readfds, |
14 | fd_set *__writefds, fd_set *__exceptfds, |
15 | const struct __timespec64 *__timeout, |
16 | const __sigset_t *__sigmask); |
17 | libc_hidden_proto (__pselect64) |
18 | |
19 | extern int __pselect32 (int __nfds, fd_set *__readfds, |
20 | fd_set *__writefds, fd_set *__exceptfds, |
21 | const struct __timespec64 *__timeout, |
22 | const __sigset_t *__sigmask) |
23 | attribute_hidden; |
24 | |
25 | extern int __select64 (int __nfds, fd_set *__readfds, |
26 | fd_set *__writefds, fd_set *__exceptfds, |
27 | struct __timeval64 *__timeout); |
28 | libc_hidden_proto (__select64) |
29 | #endif |
30 | extern int __pselect (int __nfds, fd_set *__readfds, |
31 | fd_set *__writefds, fd_set *__exceptfds, |
32 | const struct timespec *__timeout, |
33 | const __sigset_t *__sigmask); |
34 | |
35 | extern int __select (int __nfds, fd_set *__restrict __readfds, |
36 | fd_set *__restrict __writefds, |
37 | fd_set *__restrict __exceptfds, |
38 | struct timeval *__restrict __timeout); |
39 | libc_hidden_proto (__select) |
40 | |
41 | #endif |
42 | #endif |
43 | |