aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-04-25 14:35:54 +0000
committerJakub Jelinek <jakub@redhat.com>2007-04-25 14:35:54 +0000
commit9c8d03d952674f521d444955307e3fefdef71c7f (patch)
tree2a6e45085eff8f13d77ff0515eef493f86c07b85
parenta2809b303c31dc769dc2105a85f9500dbf7950c4 (diff)
downloadglibc-9c8d03d952674f521d444955307e3fefdef71c7f.zip
glibc-9c8d03d952674f521d444955307e3fefdef71c7f.tar.gz
glibc-9c8d03d952674f521d444955307e3fefdef71c7f.tar.bz2
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
version. 2007-04-25 Jakub Jelinek <jakub@redhat.com> * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version.
-rw-r--r--ChangeLog5
-rw-r--r--libio/bits/stdio.h10
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e5f9d0..e1324c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-25 Jakub Jelinek <jakub@redhat.com>
+
+ * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
+ version.
+
2007-04-23 Jakub Jelinek <jakub@redhat.com>
[BZ #4381]
diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h
index 2731162..4d23f28 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