From bdaa36ac5f0b620fbf2be08df8af7d85f055c17c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Jul 2007 15:11:35 +0000 Subject: [PATCH] 2007-04-25 Jakub Jelinek * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version. --- ChangeLog | 5 +++++ libio/bits/stdio.h | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index b718ebbef9e..02b50e6bf9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-25 Jakub Jelinek + + * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized + version. + 2007-04-25 Ulrich Drepper [BZ #4406] diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h index 9e951ad8e4a..9ac57d8968b 100644 --- a/libio/bits/stdio.h +++ b/libio/bits/stdio.h @@ -44,6 +44,16 @@ getchar (void) } +# ifdef __USE_MISC +/* Faster version when locking is not necessary. */ +__STDIO_INLINE int +fgetc_unlocked (FILE *__fp) +{ + return _IO_getc_unlocked (__fp); +} +# endif /* misc */ + + # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -- 2.47.2