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