]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/alpha/select.c
1 /* Linux/alpha select implementation.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
20 #include <sys/types.h>
21 #include <sys/select.h>
23 #include <sysdep-cancel.h>
24 #include <shlib-compat.h>
27 __new_select (int nfds
, fd_set
*readfds
, fd_set
*writefds
, fd_set
*exceptfds
,
28 struct timeval
*timeout
)
30 return SYSCALL_CANCEL (select
, nfds
, readfds
, writefds
, exceptfds
, timeout
);
32 strong_alias (__new_select
, __select
)
33 libc_hidden_def (__select
)
35 default_symbol_version (__new_select
, select
, GLIBC_2
.1
);
37 strong_alias (__new_select
, __new_select_private
);
38 symbol_version (__new_select_private
, __select
, GLIBC_2
.1
);
40 /* Old timeval32 compat calls. */
41 #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
43 __select_tv32 (int nfds
, fd_set
*readfds
, fd_set
*writefds
, fd_set
*exceptfds
,
44 struct timeval
*timeout
)
46 return SYSCALL_CANCEL (osf_select
, nfds
, readfds
, writefds
, exceptfds
,
49 strong_alias (__select_tv32
, __select_tv32_1
)
51 compat_symbol (libc
, __select_tv32
, __select
, GLIBC_2_0
);
52 compat_symbol (libc
, __select_tv32_1
, select
, GLIBC_2_0
);