aboutsummaryrefslogtreecommitdiff
path: root/libio/stdio.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-26 20:49:55 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-26 20:49:55 +0000
commit209caedfd0ef7b7c535a26ffe84e0ea9683335da (patch)
tree5becb4f4d8f6fd4cf8f01607c94f1e284744117c /libio/stdio.h
parent009479366d6105713c71b413e6f92d39c08e2ab3 (diff)
downloadglibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.zip
glibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.tar.gz
glibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.tar.bz2
Update.
* libio/Makefile (routines): Remove fgetc. * libio/fgetc.c: Removed. * libio/getc.c: Add fgetc alias. * libio/Versions [GLIBC_2.1]: Add fgetc_unlocked. * libio/getc_u.c: Rename functio to __getc_unlocked and make getc_unlocked and fgetc_unlocked weak aliases. * libio/stdio.h: Add prototype for fgetc_unlocked.
Diffstat (limited to 'libio/stdio.h')
-rw-r--r--libio/stdio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index edbd82b..6056652 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -1,5 +1,5 @@
/* Define ISO C stdio on top of C++ iostreams.
- Copyright (C) 1991, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1991, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -347,6 +347,11 @@ extern int getc_unlocked __P ((FILE *__stream));
extern int getchar_unlocked __P ((void));
#endif /* Use POSIX or MISC. */
+#ifdef __USE_MISC
+/* Faster version when locking is not necessary. */
+extern int fgetc_unlocked __P ((FILE *__stream));
+#endif /* Use MISC. */
+
/* Write a character to STREAM. */
extern int fputc __P ((int __c, FILE *__stream));