diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-26 20:49:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-26 20:49:55 +0000 |
commit | 209caedfd0ef7b7c535a26ffe84e0ea9683335da (patch) | |
tree | 5becb4f4d8f6fd4cf8f01607c94f1e284744117c /libio/stdio.h | |
parent | 009479366d6105713c71b413e6f92d39c08e2ab3 (diff) | |
download | glibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.tar.gz glibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.tar.xz glibc-209caedfd0ef7b7c535a26ffe84e0ea9683335da.zip |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libio/stdio.h b/libio/stdio.h index edbd82b3dc..6056652bf9 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)); |