From patchwork Tue Mar 16 20:04:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 42645 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA22A384B403; Tue, 16 Mar 2021 20:05:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA22A384B403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615925142; bh=gdwWK1wrEv9Bw+R/U6et3jPoWOEdmmDZ3OVqymZbb4w=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=pAM/THf1Bpy7nZJ8aLnDvLaZV4FVzFchuCpbkj1StpYuPnz5evbbP8PPHrjvBi+Lw EuvInXj5rSMqeVd01N19UbUQdPaGN+y2JHZcf4dQlsmzGRKL6Y0OOyzsJsVWs9ukAu lEFUGQSMQO22bqO4/Gzqm/b+24eBvC1Vy65mbxs4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by sourceware.org (Postfix) with ESMTPS id 50E3F384C005 for ; Tue, 16 Mar 2021 20:05:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 50E3F384C005 Received: by mail-qv1-xf30.google.com with SMTP id x16so288032qvk.3 for ; Tue, 16 Mar 2021 13:05:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gdwWK1wrEv9Bw+R/U6et3jPoWOEdmmDZ3OVqymZbb4w=; b=sRMk+BgJiR5X8h9Qkav3YrVaUm/s14plACyYgmYvLcnDrW9JIDEb8xyBYiUSJDiqtb vVA9GgsmYL/kjrVeW7/Bwc3NEjwxmKXjshpfCjRUvWSDzRuh/lhBe38lczwA9Zr2gEgp fHr4MfGa3PM2fb88hs42J/s/0Ol3jHvJ+/uyZ5tqDQBSnfLIch8DEBGe+0j2wiD0CbfF bw5mY/AqDH3QzPJtAiXKTnapkcINptWSF+hxTn0/QZF+xksq8341rArpkOzy6Crbq5Al Jj8V8PqvYDsg5Zc6ZkyStWjJTXb6YdJvIUE0VWgMvTg4+hBZMLIezkmPD6Ird1rdVqoF uMkA== X-Gm-Message-State: AOAM532a69BTOrSpO0e0zwJe+pf9GzrVOl+An6ZEvxQ1fh+gZOrGtfHk Nz/S6q7tZIx66p1+hPkShNxsXIlOD1cGpj8Y X-Google-Smtp-Source: ABdhPJxENIn2sGlQvvDlqkCANa7Ae1pSSBi9Q2df6Tnu29v8exhyuoCWXueUoznR3ORdEeYH1RiL6Q== X-Received: by 2002:a0c:9ad7:: with SMTP id k23mr1264236qvf.52.1615925134024; Tue, 16 Mar 2021 13:05:34 -0700 (PDT) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id d16sm15558128qka.43.2021.03.16.13.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 13:05:33 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 15/30] nptl: Remove pread from libpthread Date: Tue, 16 Mar 2021 17:04:55 -0300 Message-Id: <20210316200510.2135405-16-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210316200510.2135405-1-adhemerval.zanella@linaro.org> References: <20210316200510.2135405-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The libc version is identical and built with same flags. Alpha is the only outlier: although it only supports LFS interfaces it provides compat symbols for pread as well. This is accomplished by a new flag, PREAD64_REQUIRE_PREAD_COMPAT, which prevents the Linux generic implementation to create the exported alias, and the libpthread compat logic is added on arch-specific implementation. Checked on x86_64-linux-gnu. --- include/unistd.h | 2 +- nptl/Makefile | 4 +-- nptl/Versions | 3 -- .../sysv/linux/aarch64/libpthread.abilist | 3 -- sysdeps/unix/sysv/linux/alpha/libc.abilist | 3 ++ .../unix/sysv/linux/alpha/libpthread.abilist | 3 -- sysdeps/unix/sysv/linux/alpha/pread64.c | 33 +++++++++++++++++++ .../unix/sysv/linux/arc/libpthread.abilist | 3 -- .../unix/sysv/linux/arm/be/libpthread.abilist | 3 -- .../unix/sysv/linux/arm/le/libpthread.abilist | 3 -- .../unix/sysv/linux/csky/libpthread.abilist | 3 -- .../unix/sysv/linux/hppa/libpthread.abilist | 3 -- sysdeps/unix/sysv/linux/i386/libc.abilist | 3 ++ .../unix/sysv/linux/i386/libpthread.abilist | 3 -- .../unix/sysv/linux/ia64/libpthread.abilist | 3 -- .../linux/m68k/coldfire/libpthread.abilist | 3 -- .../unix/sysv/linux/m68k/m680x0/libc.abilist | 3 ++ .../sysv/linux/m68k/m680x0/libpthread.abilist | 3 -- .../linux/microblaze/be/libpthread.abilist | 3 -- .../linux/microblaze/le/libpthread.abilist | 3 -- .../sysv/linux/mips/mips32/libpthread.abilist | 3 -- .../sysv/linux/mips/mips64/libpthread.abilist | 3 -- .../unix/sysv/linux/nios2/libpthread.abilist | 3 -- .../linux/powerpc/powerpc32/fpu/libc.abilist | 3 ++ .../powerpc/powerpc32/libpthread.abilist | 3 -- .../powerpc/powerpc32/nofpu/libc.abilist | 3 ++ .../powerpc/powerpc64/be/libpthread.abilist | 3 -- .../powerpc/powerpc64/le/libpthread.abilist | 3 -- sysdeps/unix/sysv/linux/pread.c | 13 ++++++++ sysdeps/unix/sysv/linux/pread64.c | 28 +++++++++++++--- .../sysv/linux/riscv/rv32/libpthread.abilist | 3 -- .../sysv/linux/riscv/rv64/libpthread.abilist | 3 -- .../unix/sysv/linux/s390/s390-32/libc.abilist | 3 ++ .../linux/s390/s390-32/libpthread.abilist | 3 -- .../linux/s390/s390-64/libpthread.abilist | 3 -- .../unix/sysv/linux/sh/be/libpthread.abilist | 3 -- .../unix/sysv/linux/sh/le/libpthread.abilist | 3 -- .../sysv/linux/sparc/sparc32/libc.abilist | 3 ++ .../linux/sparc/sparc32/libpthread.abilist | 3 -- .../linux/sparc/sparc64/libpthread.abilist | 3 -- .../sysv/linux/x86_64/64/libpthread.abilist | 3 -- .../sysv/linux/x86_64/x32/libpthread.abilist | 3 -- 42 files changed, 93 insertions(+), 98 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/alpha/pread64.c diff --git a/include/unistd.h b/include/unistd.h index cdc31c3c0c..2d3698575c 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -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) diff --git a/nptl/Makefile b/nptl/Makefile index 9db14b788d..1a157ed0a6 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -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 diff --git a/nptl/Versions b/nptl/Versions index 6875e370fe..71d48abcef 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -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; diff --git a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist index e529be5383..1eda7db3b9 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/alpha/libc.abilist b/sysdeps/unix/sysv/linux/alpha/libc.abilist index ef49b96bf8..3de66531a2 100644 --- a/sysdeps/unix/sysv/linux/alpha/libc.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist index b7c8e7649a..5181f0bca4 100644 --- a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/alpha/pread64.c b/sysdeps/unix/sysv/linux/alpha/pread64.c new file mode 100644 index 0000000000..a40e4447e1 --- /dev/null +++ b/sysdeps/unix/sysv/linux/alpha/pread64.c @@ -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 + . */ + +#define PREAD64_REQUIRE_PREAD_COMPAT +#include + +/* 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 diff --git a/sysdeps/unix/sysv/linux/arc/libpthread.abilist b/sysdeps/unix/sysv/linux/arc/libpthread.abilist index 1340449c12..cf1d8d1754 100644 --- a/sysdeps/unix/sysv/linux/arc/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arc/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist b/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist index b6bb718bfb..4debe42e86 100644 --- a/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist b/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist index b6bb718bfb..4debe42e86 100644 --- a/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/csky/libpthread.abilist b/sysdeps/unix/sysv/linux/csky/libpthread.abilist index 42ed9d4806..e27bcbf94f 100644 --- a/sysdeps/unix/sysv/linux/csky/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/csky/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/hppa/libpthread.abilist b/sysdeps/unix/sysv/linux/hppa/libpthread.abilist index 8f2f07f7dd..28b0a04d38 100644 --- a/sysdeps/unix/sysv/linux/hppa/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/hppa/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/i386/libc.abilist b/sysdeps/unix/sysv/linux/i386/libc.abilist index 759e488238..f88a24bb51 100644 --- a/sysdeps/unix/sysv/linux/i386/libc.abilist +++ b/sysdeps/unix/sysv/linux/i386/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/i386/libpthread.abilist b/sysdeps/unix/sysv/linux/i386/libpthread.abilist index e46d881bc9..c67d62e7b8 100644 --- a/sysdeps/unix/sysv/linux/i386/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/i386/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/ia64/libpthread.abilist b/sysdeps/unix/sysv/linux/ia64/libpthread.abilist index 8150296d80..a89c3d5cd5 100644 --- a/sysdeps/unix/sysv/linux/ia64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/ia64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist b/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist index b6bb718bfb..4debe42e86 100644 --- a/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist b/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist index 9f6b0adeaf..dd75512e35 100644 --- a/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist +++ b/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist b/sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist index e46d881bc9..c67d62e7b8 100644 --- a/sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist b/sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist index d0c73a7a09..4c8394fdf4 100644 --- a/sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist b/sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist index d0c73a7a09..4c8394fdf4 100644 --- a/sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist b/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist index ffc99c55d3..2c5b6b493e 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist b/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist index ffc99c55d3..2c5b6b493e 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/nios2/libpthread.abilist b/sysdeps/unix/sysv/linux/nios2/libpthread.abilist index d161549015..fa77adb3e6 100644 --- a/sysdeps/unix/sysv/linux/nios2/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/nios2/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist index 1861a901e9..aa622a5415 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist index f136045eda..41c3ff53af 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist index 20c9c6cba4..f9840c739f 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist index 863ef63c2f..52506ec828 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist index e529be5383..1eda7db3b9 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c index 2574c97331..9b6e566c80 100644 --- a/sysdeps/unix/sysv/linux/pread.c +++ b/sysdeps/unix/sysv/linux/pread.c @@ -18,6 +18,7 @@ #include #include +#include #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 diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c index 83c6896a18..c652bab269 100644 --- a/sysdeps/unix/sysv/linux/pread64.c +++ b/sysdeps/unix/sysv/linux/pread64.c @@ -18,6 +18,7 @@ #include #include +#include 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 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/libpthread.abilist b/sysdeps/unix/sysv/linux/riscv/rv32/libpthread.abilist index 8710afde8f..b6a626ebcc 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv32/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist b/sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist index f401e97095..e9a354002f 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist b/sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist index d821c145a0..2164777ce1 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist +++ b/sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist b/sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist index 30cc87bcbe..ae20386d5a 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist b/sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist index f69a9e8268..5d1b0f53aa 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/sh/be/libpthread.abilist b/sysdeps/unix/sysv/linux/sh/be/libpthread.abilist index 8f2f07f7dd..28b0a04d38 100644 --- a/sysdeps/unix/sysv/linux/sh/be/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/sh/be/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/sh/le/libpthread.abilist b/sysdeps/unix/sysv/linux/sh/le/libpthread.abilist index 8f2f07f7dd..28b0a04d38 100644 --- a/sysdeps/unix/sysv/linux/sh/le/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/sh/le/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist b/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist index 7006678a9a..0b28566840 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist b/sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist index b7c8e7649a..5181f0bca4 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist b/sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist index 8150296d80..a89c3d5cd5 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist index 96d38ae1e4..cfdd8e7659 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist @@ -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 diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist b/sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist index 2573133ed2..e0ec1fd114 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist @@ -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