about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/pread64.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-13 18:12:55 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-26 13:37:18 -0300
commitdd795c6c243987e9974d2b9457f035dcb9b6e51f (patch)
tree7141f924fc73b14de7efe36c9b964a4f8a3a93b8 /sysdeps/unix/sysv/linux/pread64.c
parent40873cdd38533a00f3d4f67b85fd5c0a07d7952e (diff)
downloadglibc-dd795c6c243987e9974d2b9457f035dcb9b6e51f.tar.gz
glibc-dd795c6c243987e9974d2b9457f035dcb9b6e51f.tar.xz
glibc-dd795c6c243987e9974d2b9457f035dcb9b6e51f.zip
nptl: Remove pread from libpthread
The libc version is identical and built with same flags, it is also
uses as the default version.

Checked on x86_64-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/pread64.c')
-rw-r--r--sysdeps/unix/sysv/linux/pread64.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c
index 83c6896a18..7631182108 100644
--- a/sysdeps/unix/sysv/linux/pread64.c
+++ b/sysdeps/unix/sysv/linux/pread64.c
@@ -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)
@@ -33,4 +34,13 @@ weak_alias (__libc_pread64, pread64)
 strong_alias (__libc_pread64, __libc_pread)
 weak_alias (__libc_pread64, __pread)
 weak_alias (__libc_pread64, pread)
+
+# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2)
+compat_symbol (libc, __libc_pread64, pread, GLIBC_2_2);
+# endif
+#endif
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2)
+compat_symbol (libc, __libc_pread64, pread64, GLIBC_2_2);
+compat_symbol (libc, __libc_pread64, __pread64, GLIBC_2_2);
 #endif