@@ -47,7 +47,7 @@ extern ssize_t __pread64 (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset);
libc_hidden_proto (__pread64);
extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes,
- __off64_t __offset) attribute_hidden;
+ __off64_t __offset);
extern ssize_t __pwrite (int __fd, const void *__buf, size_t __n,
__off_t __offset);
libc_hidden_proto (__pwrite)
@@ -81,7 +81,7 @@ static-only-routines = pthread_atfork
# We need to provide certain routines for compatibility with existing
# binaries.
pthread-compat-wrappers = \
- pread pread64 pwrite pwrite64 \
+ pwrite pwrite64 \
tcdrain msgrcv msgsnd \
sigwait sigsuspend \
recvmsg sendmsg
@@ -284,8 +284,6 @@ CFLAGS-sem_clockwait.c = -fexceptions -fasynchronous-unwind-tables
CFLAGS-fcntl.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-fcntl64.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-lockf.c += -fexceptions
-CFLAGS-pread.c += -fexceptions -fasynchronous-unwind-tables
-CFLAGS-pread64.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-pwrite.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-pwrite64.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables
@@ -223,7 +223,6 @@ libpthread {
}
GLIBC_2.2 {
- __pread64;
__pthread_rwlock_destroy;
__pthread_rwlock_init;
__pthread_rwlock_rdlock;
@@ -233,8 +232,6 @@ libpthread {
__pthread_rwlock_wrlock;
__pwrite64;
__res_state;
- pread64;
- pread;
pthread_attr_getstack;
pthread_attr_setstack;
pthread_barrier_destroy;
@@ -7,7 +7,6 @@ GLIBC_2.17 __h_errno_location F
GLIBC_2.17 __libc_allocate_rtsig F
GLIBC_2.17 __libc_current_sigrtmax F
GLIBC_2.17 __libc_current_sigrtmin F
-GLIBC_2.17 __pread64 F
GLIBC_2.17 __pthread_cleanup_routine F
GLIBC_2.17 __pthread_getspecific F
GLIBC_2.17 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.17 flockfile F
GLIBC_2.17 ftrylockfile F
GLIBC_2.17 funlockfile F
GLIBC_2.17 longjmp F
-GLIBC_2.17 pread F
-GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getstack F
@@ -1847,6 +1847,7 @@ GLIBC_2.2 __fwriting F
GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1934,6 +1935,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -114,7 +114,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F
GLIBC_2.12 pthread_setname_np F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -124,8 +123,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
new file mode 100644
@@ -0,0 +1,33 @@
+/* Read from to a file descriptor at a given offset. Linux/alpha version.
+ Copyright (C) 2021 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#define PREAD64_REQUIRE_PREAD_COMPAT
+#include <sysdeps/unix/sysv/linux/pread64.c>
+
+/* libpthread compat symbols. */
+# if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)
+strong_alias (__libc_pread64, __compat_pread)
+compat_symbol (libc, __compat_pread, pread, GLIBC_2_1);
+
+strong_alias (__libc_pread64, __default_pread)
+versioned_symbol (libc, __default_pread, pread, GLIBC_2_2);
+
+/* It is a libc_hidden_def (__pread), but with a redirection due the symbol
+ versioning. */
+__hidden_ver1 (__compat_pread, __GI___pread, __compat_pread);
+#endif
@@ -6,7 +6,6 @@ GLIBC_2.32 __h_errno_location F
GLIBC_2.32 __libc_allocate_rtsig F
GLIBC_2.32 __libc_current_sigrtmax F
GLIBC_2.32 __libc_current_sigrtmin F
-GLIBC_2.32 __pread64 F
GLIBC_2.32 __pthread_cleanup_routine F
GLIBC_2.32 __pthread_getspecific F
GLIBC_2.32 __pthread_key_create F
@@ -55,8 +54,6 @@ GLIBC_2.32 mtx_lock F
GLIBC_2.32 mtx_timedlock F
GLIBC_2.32 mtx_trylock F
GLIBC_2.32 mtx_unlock F
-GLIBC_2.32 pread F
-GLIBC_2.32 pread64 F
GLIBC_2.32 pthread_attr_getaffinity_np F
GLIBC_2.32 pthread_attr_getguardsize F
GLIBC_2.32 pthread_attr_getstack F
@@ -42,7 +42,6 @@ GLIBC_2.4 __h_errno_location F
GLIBC_2.4 __libc_allocate_rtsig F
GLIBC_2.4 __libc_current_sigrtmax F
GLIBC_2.4 __libc_current_sigrtmin F
-GLIBC_2.4 __pread64 F
GLIBC_2.4 __pthread_cleanup_routine F
GLIBC_2.4 __pthread_getspecific F
GLIBC_2.4 __pthread_key_create F
@@ -80,8 +79,6 @@ GLIBC_2.4 flockfile F
GLIBC_2.4 ftrylockfile F
GLIBC_2.4 funlockfile F
GLIBC_2.4 longjmp F
-GLIBC_2.4 pread F
-GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getstack F
@@ -42,7 +42,6 @@ GLIBC_2.4 __h_errno_location F
GLIBC_2.4 __libc_allocate_rtsig F
GLIBC_2.4 __libc_current_sigrtmax F
GLIBC_2.4 __libc_current_sigrtmin F
-GLIBC_2.4 __pread64 F
GLIBC_2.4 __pthread_cleanup_routine F
GLIBC_2.4 __pthread_getspecific F
GLIBC_2.4 __pthread_key_create F
@@ -80,8 +79,6 @@ GLIBC_2.4 flockfile F
GLIBC_2.4 ftrylockfile F
GLIBC_2.4 funlockfile F
GLIBC_2.4 longjmp F
-GLIBC_2.4 pread F
-GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getstack F
@@ -6,7 +6,6 @@ GLIBC_2.29 __h_errno_location F
GLIBC_2.29 __libc_allocate_rtsig F
GLIBC_2.29 __libc_current_sigrtmax F
GLIBC_2.29 __libc_current_sigrtmin F
-GLIBC_2.29 __pread64 F
GLIBC_2.29 __pthread_cleanup_routine F
GLIBC_2.29 __pthread_getspecific F
GLIBC_2.29 __pthread_key_create F
@@ -55,8 +54,6 @@ GLIBC_2.29 mtx_lock F
GLIBC_2.29 mtx_timedlock F
GLIBC_2.29 mtx_trylock F
GLIBC_2.29 mtx_unlock F
-GLIBC_2.29 pread F
-GLIBC_2.29 pread64 F
GLIBC_2.29 pthread_attr_getaffinity_np F
GLIBC_2.29 pthread_attr_getguardsize F
GLIBC_2.29 pthread_attr_getstack F
@@ -15,7 +15,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -1851,6 +1851,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1943,6 +1944,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -114,7 +114,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F
GLIBC_2.12 pthread_setname_np F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -124,8 +123,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
@@ -15,7 +15,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -42,7 +42,6 @@ GLIBC_2.4 __h_errno_location F
GLIBC_2.4 __libc_allocate_rtsig F
GLIBC_2.4 __libc_current_sigrtmax F
GLIBC_2.4 __libc_current_sigrtmin F
-GLIBC_2.4 __pread64 F
GLIBC_2.4 __pthread_cleanup_routine F
GLIBC_2.4 __pthread_getspecific F
GLIBC_2.4 __pthread_key_create F
@@ -80,8 +79,6 @@ GLIBC_2.4 flockfile F
GLIBC_2.4 ftrylockfile F
GLIBC_2.4 funlockfile F
GLIBC_2.4 longjmp F
-GLIBC_2.4 pread F
-GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getstack F
@@ -1807,6 +1807,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1899,6 +1900,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -114,7 +114,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F
GLIBC_2.12 pthread_setname_np F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -124,8 +123,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
@@ -7,7 +7,6 @@ GLIBC_2.18 __h_errno_location F
GLIBC_2.18 __libc_allocate_rtsig F
GLIBC_2.18 __libc_current_sigrtmax F
GLIBC_2.18 __libc_current_sigrtmin F
-GLIBC_2.18 __pread64 F
GLIBC_2.18 __pthread_cleanup_routine F
GLIBC_2.18 __pthread_getspecific F
GLIBC_2.18 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.18 flockfile F
GLIBC_2.18 ftrylockfile F
GLIBC_2.18 funlockfile F
GLIBC_2.18 longjmp F
-GLIBC_2.18 pread F
-GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getstack F
@@ -7,7 +7,6 @@ GLIBC_2.18 __h_errno_location F
GLIBC_2.18 __libc_allocate_rtsig F
GLIBC_2.18 __libc_current_sigrtmax F
GLIBC_2.18 __libc_current_sigrtmin F
-GLIBC_2.18 __pread64 F
GLIBC_2.18 __pthread_cleanup_routine F
GLIBC_2.18 __pthread_getspecific F
GLIBC_2.18 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.18 flockfile F
GLIBC_2.18 ftrylockfile F
GLIBC_2.18 funlockfile F
GLIBC_2.18 longjmp F
-GLIBC_2.18 pread F
-GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getstack F
@@ -80,7 +80,6 @@ GLIBC_2.18 pthread_setattr_default_np F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -90,8 +89,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F
@@ -80,7 +80,6 @@ GLIBC_2.18 pthread_setattr_default_np F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -90,8 +89,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F
@@ -7,7 +7,6 @@ GLIBC_2.21 __h_errno_location F
GLIBC_2.21 __libc_allocate_rtsig F
GLIBC_2.21 __libc_current_sigrtmax F
GLIBC_2.21 __libc_current_sigrtmin F
-GLIBC_2.21 __pread64 F
GLIBC_2.21 __pthread_cleanup_routine F
GLIBC_2.21 __pthread_getspecific F
GLIBC_2.21 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.21 flockfile F
GLIBC_2.21 ftrylockfile F
GLIBC_2.21 funlockfile F
GLIBC_2.21 longjmp F
-GLIBC_2.21 pread F
-GLIBC_2.21 pread64 F
GLIBC_2.21 pthread_attr_getaffinity_np F
GLIBC_2.21 pthread_attr_getguardsize F
GLIBC_2.21 pthread_attr_getstack F
@@ -1813,6 +1813,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1904,6 +1905,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -114,7 +114,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F
GLIBC_2.12 pthread_setname_np F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -124,8 +123,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
@@ -1817,6 +1817,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1908,6 +1909,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -36,7 +36,6 @@ GLIBC_2.3 __h_errno_location F
GLIBC_2.3 __libc_allocate_rtsig F
GLIBC_2.3 __libc_current_sigrtmax F
GLIBC_2.3 __libc_current_sigrtmin F
-GLIBC_2.3 __pread64 F
GLIBC_2.3 __pthread_getspecific F
GLIBC_2.3 __pthread_key_create F
GLIBC_2.3 __pthread_mutex_destroy F
@@ -68,8 +67,6 @@ GLIBC_2.3 flockfile F
GLIBC_2.3 ftrylockfile F
GLIBC_2.3 funlockfile F
GLIBC_2.3 longjmp F
-GLIBC_2.3 pread F
-GLIBC_2.3 pread64 F
GLIBC_2.3 pthread_attr_getguardsize F
GLIBC_2.3 pthread_attr_getstack F
GLIBC_2.3 pthread_attr_getstackaddr F
@@ -7,7 +7,6 @@ GLIBC_2.17 __h_errno_location F
GLIBC_2.17 __libc_allocate_rtsig F
GLIBC_2.17 __libc_current_sigrtmax F
GLIBC_2.17 __libc_current_sigrtmin F
-GLIBC_2.17 __pread64 F
GLIBC_2.17 __pthread_cleanup_routine F
GLIBC_2.17 __pthread_getspecific F
GLIBC_2.17 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.17 flockfile F
GLIBC_2.17 ftrylockfile F
GLIBC_2.17 funlockfile F
GLIBC_2.17 longjmp F
-GLIBC_2.17 pread F
-GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getstack F
@@ -18,6 +18,7 @@
#include <unistd.h>
#include <sysdep-cancel.h>
+#include <shlib-compat.h>
#ifndef __OFF_T_MATCHES_OFF64_T
@@ -27,7 +28,19 @@ __libc_pread (int fd, void *buf, size_t count, off_t offset)
return SYSCALL_CANCEL (pread64, fd, buf, count, SYSCALL_LL_PRW (offset));
}
+# if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)
+strong_alias (__libc_pread, __compat_pread)
+compat_symbol (libc, __compat_pread, pread, GLIBC_2_1);
+
+strong_alias (__libc_pread, __default_pread)
+versioned_symbol (libc, __default_pread, pread, GLIBC_2_2);
+
+/* It is a libc_hidden_def (__pread64), but with a redirection due the symbol
+ versioning. */
+__hidden_ver1 (__libc_pread, __GI___pread, __libc_pread);
+# else
strong_alias (__libc_pread, __pread)
libc_hidden_weak (__pread)
weak_alias (__libc_pread, pread)
+# endif
#endif
@@ -18,6 +18,7 @@
#include <unistd.h>
#include <sysdep-cancel.h>
+#include <shlib-compat.h>
ssize_t
__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
@@ -25,12 +26,31 @@ __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
return SYSCALL_CANCEL (pread64, fd, buf, count, SYSCALL_LL64_PRW (offset));
}
-weak_alias (__libc_pread64, __pread64)
-libc_hidden_weak (__pread64)
-weak_alias (__libc_pread64, pread64)
-
#ifdef __OFF_T_MATCHES_OFF64_T
strong_alias (__libc_pread64, __libc_pread)
+/* Similar to non-LFS symbol, alpha requires compat symbols for pread. */
+# ifndef PREAD64_REQUIRE_PREAD_COMPAT
weak_alias (__libc_pread64, __pread)
weak_alias (__libc_pread64, pread)
+# endif
+#endif
+
+#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)
+strong_alias (__libc_pread64, __compat_pread64)
+compat_symbol (libc, __compat_pread64, pread64, GLIBC_2_1);
+strong_alias (__libc_pread64, __compat___pread64)
+compat_symbol (libc, __compat___pread64, __pread64, GLIBC_2_1);
+
+strong_alias (__libc_pread64, __default___pread64)
+versioned_symbol (libc, __default___pread64, __pread64, GLIBC_2_2);
+strong_alias (__libc_pread64, __default_pread64)
+versioned_symbol (libc, __default_pread64, pread64, GLIBC_2_2);
+
+/* It is a libc_hidden_def (__pread64), but with a redirection due the symbol
+ versioning. */
+__hidden_ver1 (__libc_pread64, __GI___pread64, __libc_pread64);
+#else
+weak_alias (__libc_pread64, __pread64)
+libc_hidden_weak (__pread64)
+weak_alias (__libc_pread64, pread64)
#endif
@@ -6,7 +6,6 @@ GLIBC_2.33 __h_errno_location F
GLIBC_2.33 __libc_allocate_rtsig F
GLIBC_2.33 __libc_current_sigrtmax F
GLIBC_2.33 __libc_current_sigrtmin F
-GLIBC_2.33 __pread64 F
GLIBC_2.33 __pthread_cleanup_routine F
GLIBC_2.33 __pthread_getspecific F
GLIBC_2.33 __pthread_key_create F
@@ -55,8 +54,6 @@ GLIBC_2.33 mtx_lock F
GLIBC_2.33 mtx_timedlock F
GLIBC_2.33 mtx_trylock F
GLIBC_2.33 mtx_unlock F
-GLIBC_2.33 pread F
-GLIBC_2.33 pread64 F
GLIBC_2.33 pthread_attr_getaffinity_np F
GLIBC_2.33 pthread_attr_getguardsize F
GLIBC_2.33 pthread_attr_getstack F
@@ -7,7 +7,6 @@ GLIBC_2.27 __h_errno_location F
GLIBC_2.27 __libc_allocate_rtsig F
GLIBC_2.27 __libc_current_sigrtmax F
GLIBC_2.27 __libc_current_sigrtmin F
-GLIBC_2.27 __pread64 F
GLIBC_2.27 __pthread_cleanup_routine F
GLIBC_2.27 __pthread_getspecific F
GLIBC_2.27 __pthread_key_create F
@@ -44,8 +43,6 @@ GLIBC_2.27 fcntl F
GLIBC_2.27 flockfile F
GLIBC_2.27 ftrylockfile F
GLIBC_2.27 funlockfile F
-GLIBC_2.27 pread F
-GLIBC_2.27 pread64 F
GLIBC_2.27 pthread_attr_getaffinity_np F
GLIBC_2.27 pthread_attr_getguardsize F
GLIBC_2.27 pthread_attr_getstack F
@@ -1811,6 +1811,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1902,6 +1903,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -116,7 +116,6 @@ GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
GLIBC_2.19 longjmp F
GLIBC_2.19 siglongjmp F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -126,8 +125,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
@@ -17,7 +17,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -49,8 +48,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -15,7 +15,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -15,7 +15,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -1809,6 +1809,7 @@ GLIBC_2.2 __getmntent_r F
GLIBC_2.2 __lxstat64 F
GLIBC_2.2 __nl_langinfo_l F
GLIBC_2.2 __open64 F
+GLIBC_2.2 __pread64 F
GLIBC_2.2 __res_init F
GLIBC_2.2 __res_nclose F
GLIBC_2.2 __res_ninit F
@@ -1898,6 +1899,8 @@ GLIBC_2.2 posix_spawnattr_setschedpolicy F
GLIBC_2.2 posix_spawnattr_setsigdefault F
GLIBC_2.2 posix_spawnattr_setsigmask F
GLIBC_2.2 posix_spawnp F
+GLIBC_2.2 pread F
+GLIBC_2.2 pread64 F
GLIBC_2.2 putwc F
GLIBC_2.2 putwc_unlocked F
GLIBC_2.2 putwchar F
@@ -114,7 +114,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F
GLIBC_2.12 pthread_setname_np F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_rwlock_destroy F
GLIBC_2.2 __pthread_rwlock_init F
GLIBC_2.2 __pthread_rwlock_rdlock F
@@ -124,8 +123,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F
GLIBC_2.2 __pthread_rwlock_wrlock F
GLIBC_2.2 __pwrite64 F
GLIBC_2.2 __res_state F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_setstack F
GLIBC_2.2 pthread_barrier_destroy F
@@ -15,7 +15,6 @@ GLIBC_2.2 __h_errno_location F
GLIBC_2.2 __libc_allocate_rtsig F
GLIBC_2.2 __libc_current_sigrtmax F
GLIBC_2.2 __libc_current_sigrtmin F
-GLIBC_2.2 __pread64 F
GLIBC_2.2 __pthread_getspecific F
GLIBC_2.2 __pthread_key_create F
GLIBC_2.2 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2 flockfile F
GLIBC_2.2 ftrylockfile F
GLIBC_2.2 funlockfile F
GLIBC_2.2 longjmp F
-GLIBC_2.2 pread F
-GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getstack F
@@ -15,7 +15,6 @@ GLIBC_2.2.5 __h_errno_location F
GLIBC_2.2.5 __libc_allocate_rtsig F
GLIBC_2.2.5 __libc_current_sigrtmax F
GLIBC_2.2.5 __libc_current_sigrtmin F
-GLIBC_2.2.5 __pread64 F
GLIBC_2.2.5 __pthread_getspecific F
GLIBC_2.2.5 __pthread_key_create F
GLIBC_2.2.5 __pthread_mutex_destroy F
@@ -47,8 +46,6 @@ GLIBC_2.2.5 flockfile F
GLIBC_2.2.5 ftrylockfile F
GLIBC_2.2.5 funlockfile F
GLIBC_2.2.5 longjmp F
-GLIBC_2.2.5 pread F
-GLIBC_2.2.5 pread64 F
GLIBC_2.2.5 pthread_atfork F
GLIBC_2.2.5 pthread_attr_getguardsize F
GLIBC_2.2.5 pthread_attr_getstack F
@@ -7,7 +7,6 @@ GLIBC_2.16 __h_errno_location F
GLIBC_2.16 __libc_allocate_rtsig F
GLIBC_2.16 __libc_current_sigrtmax F
GLIBC_2.16 __libc_current_sigrtmin F
-GLIBC_2.16 __pread64 F
GLIBC_2.16 __pthread_cleanup_routine F
GLIBC_2.16 __pthread_getspecific F
GLIBC_2.16 __pthread_key_create F
@@ -45,8 +44,6 @@ GLIBC_2.16 flockfile F
GLIBC_2.16 ftrylockfile F
GLIBC_2.16 funlockfile F
GLIBC_2.16 longjmp F
-GLIBC_2.16 pread F
-GLIBC_2.16 pread64 F
GLIBC_2.16 pthread_attr_getaffinity_np F
GLIBC_2.16 pthread_attr_getguardsize F
GLIBC_2.16 pthread_attr_getstack F