From b9b91868d49b1853bdb15e7514eb5fbc578926a9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 10 Aug 2002 09:24:53 +0000 Subject: * include/wchar.h (putwc): Use libc_hidden_proto. * include/stdio.h (dprintf, fprintf, vfprintf, sprintf, sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise. * stdio-common/dprintf.c: Add libc_hidden_def. * stdio-common/fprintf.c: Likewise. * stdio-common/sprintf.c: Likewise. * stdio-common/sscanf.c: Likewise. * libio/iofwrite.c: Likewise. * libio/memstream.c: Likewise. * libio/putwc.c: Likewise. * stdio-common/perror.c: Likewise. * sysdeps/posix/remove.c: Likewise. * sysdeps/generic/remove.c: Likewise. * libio/rewind.c: Likewise. Use instead of "stdio.h". * stdio-common/vfprintf.c: Add libc_hidden_def. Include . --- libio/iofwrite.c | 3 ++- libio/memstream.c | 1 + libio/putwc.c | 3 ++- libio/rewind.c | 5 +++-- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'libio') diff --git a/libio/iofwrite.c b/libio/iofwrite.c index 9a4016f06e..47c166cf22 100644 --- a/libio/iofwrite.c +++ b/libio/iofwrite.c @@ -53,8 +53,9 @@ _IO_fwrite (buf, size, count, fp) INTDEF(_IO_fwrite) #ifdef weak_alias +# include weak_alias (_IO_fwrite, fwrite) - +libc_hidden_weak (fwrite) # ifndef _IO_MTSAFE_IO weak_alias (_IO_fwrite, fwrite_unlocked) # endif diff --git a/libio/memstream.c b/libio/memstream.c index ad31390633..a3ec964237 100644 --- a/libio/memstream.c +++ b/libio/memstream.c @@ -124,6 +124,7 @@ open_memstream (bufloc, sizeloc) return (_IO_FILE *) &new_f->fp._sf._sbf; } +libc_hidden_def (open_memstream) static int diff --git a/libio/putwc.c b/libio/putwc.c index 3fbef87b5e..33da712f7f 100644 --- a/libio/putwc.c +++ b/libio/putwc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 95, 96, 97, 98, 99 Free Software Foundation, Inc. +/* Copyright (C) 1991,95,96,97,98,99,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -33,3 +33,4 @@ putwc (wc, fp) _IO_cleanup_region_end (0); return result; } +libc_hidden_def (putwc) diff --git a/libio/rewind.c b/libio/rewind.c index 91bcdf15f5..e1bdc571e0 100644 --- a/libio/rewind.c +++ b/libio/rewind.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1993,96,97,98,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,7 +26,7 @@ in files containing the exception. */ #include "libioP.h" -#include "stdio.h" +#include void rewind (fp) @@ -40,3 +40,4 @@ rewind (fp) _IO_funlockfile (fp); _IO_cleanup_region_end (0); } +libc_hidden_def (rewind) -- cgit v1.2.1