aboutsummaryrefslogtreecommitdiff
path: root/libio/bits/stdio.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-12 15:11:35 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-12 15:11:35 +0000
commitbdaa36ac5f0b620fbf2be08df8af7d85f055c17c (patch)
treec55fa45d6872ad4e5ac49d6400b088b9941562d3 /libio/bits/stdio.h
parente93acb4d8207f6c0ce89efcc08669241e7a52cc8 (diff)
downloadglibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.tar
glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.tar.gz
glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.tar.bz2
glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.zip
2007-04-25 Jakub Jelinek <jakub@redhat.com>
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version.
Diffstat (limited to 'libio/bits/stdio.h')
-rw-r--r--libio/bits/stdio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h
index 9e951ad8e4..9ac57d8968 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