aboutsummaryrefslogtreecommitdiff
path: root/libio/getc_u.c
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/getc_u.c
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/getc_u.c')
-rw-r--r--libio/getc_u.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libio/getc_u.c b/libio/getc_u.c
index f074427..5572ef6 100644
--- a/libio/getc_u.c
+++ b/libio/getc_u.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@@ -29,9 +29,12 @@
#undef getc_unlocked
int
-getc_unlocked (fp)
+__getc_unlocked (fp)
FILE *fp;
{
CHECK_FILE (fp, EOF);
return _IO_getc_unlocked (fp);
}
+
+weak_alias (__getc_unlocked, getc_unlocked)
+weak_alias (__getc_unlocked, fgetc_unlocked)