]>
Commit | Line | Data |
---|---|---|
26f28fd7 | 1 | /* Linux/alpha select implementation. |
04277e02 | 2 | Copyright (C) 2017-2019 Free Software Foundation, Inc. |
26f28fd7 AZ |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
6 | modify it under the terms of the GNU Lesser General Public | |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
9 | ||
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | Lesser General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU Lesser General Public | |
16 | License along with the GNU C Library. If not, see | |
5a82c748 | 17 | <https://www.gnu.org/licenses/>. */ |
26f28fd7 AZ |
18 | |
19 | #include <sys/time.h> | |
20 | #include <sys/types.h> | |
21 | #include <sys/select.h> | |
22 | #include <errno.h> | |
23 | #include <sysdep-cancel.h> | |
24 | #include <shlib-compat.h> | |
25 | ||
26 | int | |
27 | __new_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, | |
28 | struct timeval *timeout) | |
29 | { | |
30 | return SYSCALL_CANCEL (select, nfds, readfds, writefds, exceptfds, timeout); | |
31 | } | |
32 | strong_alias (__new_select, __select) | |
33 | libc_hidden_def (__select) | |
34 | ||
35 | default_symbol_version (__new_select, select, GLIBC_2.1); | |
36 | ||
37 | strong_alias (__new_select, __new_select_private); | |
38 | symbol_version (__new_select_private, __select, GLIBC_2.1); | |
39 | ||
40 | /* Old timeval32 compat calls. */ | |
41 | #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1) | |
42 | int | |
43 | __select_tv32 (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, | |
44 | struct timeval *timeout) | |
45 | { | |
46 | return SYSCALL_CANCEL (osf_select, nfds, readfds, writefds, exceptfds, | |
47 | timeout); | |
48 | } | |
49 | strong_alias (__select_tv32, __select_tv32_1) | |
50 | ||
51 | compat_symbol (libc, __select_tv32, __select, GLIBC_2_0); | |
52 | compat_symbol (libc, __select_tv32_1, select, GLIBC_2_0); | |
53 | #endif |