summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-10 09:24:53 +0000
committerRoland McGrath <roland@gnu.org>2002-08-10 09:24:53 +0000
commitb9b91868d49b1853bdb15e7514eb5fbc578926a9 (patch)
tree43e1361fba746ce24f8fc064fe6dbabb2510c0da /libio
parent5656e2948f2afcf5ace45b01ac2589ded742e6d3 (diff)
downloadglibc-b9b91868d49b1853bdb15e7514eb5fbc578926a9.tar.gz
* 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 <stdio.h> instead of "stdio.h". * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
Diffstat (limited to 'libio')
-rw-r--r--libio/iofwrite.c3
-rw-r--r--libio/memstream.c1
-rw-r--r--libio/putwc.c3
-rw-r--r--libio/rewind.c5
4 files changed, 8 insertions, 4 deletions
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 <stdio.h>
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 <stdio.h>
void
rewind (fp)
@@ -40,3 +40,4 @@ rewind (fp)
_IO_funlockfile (fp);
_IO_cleanup_region_end (0);
}
+libc_hidden_def (rewind)