From 209caedfd0ef7b7c535a26ffe84e0ea9683335da Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 26 Jan 1999 20:49:55 +0000 Subject: 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. --- libio/stdio.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libio/stdio.h') 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)); -- cgit 1.4.1