From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 1EB8D385277C; Thu, 9 Jun 2022 21:20:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EB8D385277C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] libio: Use __libc_ferror_unlocked instead of __ferror_unlocked X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: c169c9fd61884f6c05480c50dfda4e992ad94304 X-Git-Newrev: 383cd72a88858f0dc6b0af438813feaccf114d89 Message-Id: <20220609212017.1EB8D385277C@sourceware.org> Date: Thu, 9 Jun 2022 21:20:17 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 21:20:17 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=383cd72a88858f0dc6b0af438813feaccf114d89 commit 383cd72a88858f0dc6b0af438813feaccf114d89 Author: Adhemerval Zanella Date: Mon Mar 14 15:14:36 2022 -0300 libio: Use __libc_ferror_unlocked instead of __ferror_unlocked Internal __ferror_unlocked is done using a inline function (regardless of __USE_EXTERN_INLINES). The internal alias is removed since it is not used. Diff: --- include/stdio.h | 9 ++++----- libio/ferror_u.c | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 51a8d65f22..f1e388523b 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -243,8 +243,7 @@ libc_hidden_proto (fputs_unlocked) extern __typeof (fputs_unlocked) __fputs_unlocked; libc_hidden_proto (__fputs_unlocked) extern __typeof (feof_unlocked) __libc_feof_unlocked; -libc_hidden_proto (ferror_unlocked) -extern __typeof (ferror_unlocked) __ferror_unlocked attribute_hidden; +extern __typeof (ferror_unlocked) __libc_ferror_unlocked; libc_hidden_proto (getc_unlocked) libc_hidden_proto (fputc_unlocked) libc_hidden_proto (putc_unlocked) @@ -270,13 +269,13 @@ __feof_unlocked (FILE *__stream) return __feof_unlocked_body (__stream); } -# ifdef __USE_EXTERN_INLINES -__extern_inline int -__NTH (__ferror_unlocked (FILE *__stream)) +static inline int +__ferror_unlocked (FILE *__stream) { return __ferror_unlocked_body (__stream); } +# ifdef __USE_EXTERN_INLINES __extern_inline int __getc_unlocked (FILE *__fp) { diff --git a/libio/ferror_u.c b/libio/ferror_u.c index edba404d32..ea2a97db8f 100644 --- a/libio/ferror_u.c +++ b/libio/ferror_u.c @@ -30,10 +30,9 @@ #undef ferror_unlocked int -__ferror_unlocked (FILE *fp) +__libc_ferror_unlocked (FILE *fp) { CHECK_FILE (fp, EOF); return _IO_ferror_unlocked (fp); } weak_alias (__ferror_unlocked, ferror_unlocked) -libc_hidden_weak (ferror_unlocked)