aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2010-10-15 00:50:45 +0800
committerJim Huang <jserv@0xlab.org>2010-10-15 01:10:31 +0800
commitb4867734b06a18494976934c6f33ff2549595e3f (patch)
treee0872aed3956ed9a5f8e66457acf71b0c066c96d
parentf67e5211e045af1b12f646448a5a35f96ba5e8f1 (diff)
downloadandroid_bionic-b4867734b06a18494976934c6f33ff2549595e3f.tar.gz
android_bionic-b4867734b06a18494976934c6f33ff2549595e3f.tar.bz2
android_bionic-b4867734b06a18494976934c6f33ff2549595e3f.zip
stdio: make internal symbols static/hidden
Although header libc/stdio/local.h declares the macros and private variables of stdio, there are several internal symbols exposed unexpectedly. Change-Id: Ie7a07f85b70322fb9cd05b3c8e1bcc416061eb4b
-rw-r--r--libc/stdio/fgetln.c2
-rw-r--r--libc/stdio/findfp.c2
-rw-r--r--libc/stdio/flockfile.c2
-rw-r--r--libc/stdio/fvwrite.c2
-rw-r--r--libc/stdio/mktemp.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/libc/stdio/fgetln.c b/libc/stdio/fgetln.c
index 946e1b7d4..95a5b31d9 100644
--- a/libc/stdio/fgetln.c
+++ b/libc/stdio/fgetln.c
@@ -43,7 +43,7 @@
* so we add 1 here.
#endif
*/
-int
+static int
__slbexpand(FILE *fp, size_t newsize)
{
void *p;
diff --git a/libc/stdio/findfp.c b/libc/stdio/findfp.c
index 039293fa6..1d0f9c5d8 100644
--- a/libc/stdio/findfp.c
+++ b/libc/stdio/findfp.c
@@ -55,7 +55,7 @@ static FILE usual[FOPEN_MAX - 3];
static struct __sfileext usualext[FOPEN_MAX - 3];
static struct glue uglue = { 0, FOPEN_MAX - 3, usual };
-struct __sfileext __sFext[3];
+static struct __sfileext __sFext[3];
FILE __sF[3] = {
std(__SRD, STDIN_FILENO), /* stdin */
std(__SWR, STDOUT_FILENO), /* stdout */
diff --git a/libc/stdio/flockfile.c b/libc/stdio/flockfile.c
index bfb081cde..e8c74c561 100644
--- a/libc/stdio/flockfile.c
+++ b/libc/stdio/flockfile.c
@@ -191,7 +191,7 @@ funlockfile(FILE * fp)
/* called from fclose() to remove the file lock */
-void
+__LIBC_HIDDEN__ void
__fremovelock(FILE* fp)
{
LockTable* t = lock_table_lock();
diff --git a/libc/stdio/fvwrite.c b/libc/stdio/fvwrite.c
index ee394006d..57a57e606 100644
--- a/libc/stdio/fvwrite.c
+++ b/libc/stdio/fvwrite.c
@@ -44,7 +44,7 @@
* This routine is large and unsightly, but most of the ugliness due
* to the three different kinds of output buffering is handled here.
*/
-int
+__LIBC_HIDDEN__ int
__sfvwrite(FILE *fp, struct __suio *uio)
{
size_t len;
diff --git a/libc/stdio/mktemp.c b/libc/stdio/mktemp.c
index 951f803d4..aaa5640e3 100644
--- a/libc/stdio/mktemp.c
+++ b/libc/stdio/mktemp.c
@@ -65,7 +65,7 @@ mkdtemp(char *path)
char *_mktemp(char *);
-char *
+__LIBC_HIDDEN__ char *
_mktemp(char *path)
{
return(_gettemp(path, (int *)NULL, 0, 0) ? path : (char *)NULL);