From 125773133f0fe2425ab3d8305ed880e9010f6803 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 19 May 2008 22:57:34 +0000 Subject: Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL block in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's. --- libc/string/i386/memchr.c | 2 +- libc/string/i386/memcpy.c | 2 +- libc/string/i386/memmove.c | 2 +- libc/string/i386/memset.c | 2 +- libc/string/i386/strcat.c | 2 +- libc/string/i386/strchr.c | 2 +- libc/string/i386/strcmp.c | 4 ++-- libc/string/i386/strcpy.c | 2 +- libc/string/i386/strlen.c | 2 +- libc/string/i386/strncat.c | 2 +- libc/string/i386/strncmp.c | 2 +- libc/string/i386/strncpy.c | 2 +- libc/string/i386/strnlen.c | 2 +- libc/string/i386/strrchr.c | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) (limited to 'libc/string/i386') diff --git a/libc/string/i386/memchr.c b/libc/string/i386/memchr.c index 229d42919..fe4537914 100644 --- a/libc/string/i386/memchr.c +++ b/libc/string/i386/memchr.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(memchr) +/* Experimentally off - libc_hidden_proto(memchr) */ void *memchr(const void *cs, int c, size_t count) { int d0; diff --git a/libc/string/i386/memcpy.c b/libc/string/i386/memcpy.c index a2b8d3d8c..285583f3b 100644 --- a/libc/string/i386/memcpy.c +++ b/libc/string/i386/memcpy.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(memcpy) +/* Experimentally off - libc_hidden_proto(memcpy) */ void *memcpy(void * to, const void * from, size_t n) { int d0, d1, d2; diff --git a/libc/string/i386/memmove.c b/libc/string/i386/memmove.c index a26fe2be1..a924efcbc 100644 --- a/libc/string/i386/memmove.c +++ b/libc/string/i386/memmove.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(memmove) +/* Experimentally off - libc_hidden_proto(memmove) */ void *memmove(void *dest, const void *src, size_t n) { int d0, d1, d2; diff --git a/libc/string/i386/memset.c b/libc/string/i386/memset.c index eea48040a..bbaa45215 100644 --- a/libc/string/i386/memset.c +++ b/libc/string/i386/memset.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(memset) +/* Experimentally off - libc_hidden_proto(memset) */ void *memset(void *s, int c, size_t count) { int d0, d1; diff --git a/libc/string/i386/strcat.c b/libc/string/i386/strcat.c index e0b1f3b51..2cf0237a6 100644 --- a/libc/string/i386/strcat.c +++ b/libc/string/i386/strcat.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strcat) +/* Experimentally off - libc_hidden_proto(strcat) */ char *strcat(char * dest, const char * src) { int d0, d1, d2, d3; diff --git a/libc/string/i386/strchr.c b/libc/string/i386/strchr.c index 7568d48db..46b1dfb6e 100644 --- a/libc/string/i386/strchr.c +++ b/libc/string/i386/strchr.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strchr) +/* Experimentally off - libc_hidden_proto(strchr) */ char *strchr(const char *s, int c) { int d0; diff --git a/libc/string/i386/strcmp.c b/libc/string/i386/strcmp.c index 47635d817..eff230c5c 100644 --- a/libc/string/i386/strcmp.c +++ b/libc/string/i386/strcmp.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strcmp) +/* Experimentally off - libc_hidden_proto(strcmp) */ int strcmp(const char *cs, const char *ct) { int d0, d1; @@ -55,7 +55,7 @@ int strcmp(const char *cs, const char *ct) libc_hidden_def(strcmp) #ifndef __UCLIBC_HAS_LOCALE__ -libc_hidden_proto(strcoll) +/* Experimentally off - libc_hidden_proto(strcoll) */ strong_alias(strcmp,strcoll) libc_hidden_def(strcoll) #endif diff --git a/libc/string/i386/strcpy.c b/libc/string/i386/strcpy.c index 9e2b81009..09065a9b7 100644 --- a/libc/string/i386/strcpy.c +++ b/libc/string/i386/strcpy.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strcpy) +/* Experimentally off - libc_hidden_proto(strcpy) */ char *strcpy(char * dest, const char * src) { int d0, d1, d2; diff --git a/libc/string/i386/strlen.c b/libc/string/i386/strlen.c index f0767b600..61a178393 100644 --- a/libc/string/i386/strlen.c +++ b/libc/string/i386/strlen.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strlen) +/* Experimentally off - libc_hidden_proto(strlen) */ size_t strlen(const char *s) { int d0; diff --git a/libc/string/i386/strncat.c b/libc/string/i386/strncat.c index c1061421e..5849db3b3 100644 --- a/libc/string/i386/strncat.c +++ b/libc/string/i386/strncat.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strncat) +/* Experimentally off - libc_hidden_proto(strncat) */ char *strncat(char * dest, const char * src, size_t count) { diff --git a/libc/string/i386/strncmp.c b/libc/string/i386/strncmp.c index d716789c3..a14bb503b 100644 --- a/libc/string/i386/strncmp.c +++ b/libc/string/i386/strncmp.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strncmp) +/* Experimentally off - libc_hidden_proto(strncmp) */ int strncmp(const char *cs, const char *ct, size_t count) { register int __res; diff --git a/libc/string/i386/strncpy.c b/libc/string/i386/strncpy.c index c061fe37e..76aa6ae1b 100644 --- a/libc/string/i386/strncpy.c +++ b/libc/string/i386/strncpy.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strncpy) +/* Experimentally off - libc_hidden_proto(strncpy) */ char *strncpy(char * dest, const char * src, size_t count) { int d0, d1, d2, d3; diff --git a/libc/string/i386/strnlen.c b/libc/string/i386/strnlen.c index 77b5c7568..02c72f530 100644 --- a/libc/string/i386/strnlen.c +++ b/libc/string/i386/strnlen.c @@ -33,7 +33,7 @@ #include #ifdef __USE_GNU -libc_hidden_proto(strnlen) +/* Experimentally off - libc_hidden_proto(strnlen) */ size_t strnlen(const char *s, size_t count) { int d0; diff --git a/libc/string/i386/strrchr.c b/libc/string/i386/strrchr.c index e3b2df6fb..ef378685b 100644 --- a/libc/string/i386/strrchr.c +++ b/libc/string/i386/strrchr.c @@ -32,7 +32,7 @@ #include -libc_hidden_proto(strrchr) +/* Experimentally off - libc_hidden_proto(strrchr) */ char *strrchr(const char *s, int c) { int d0, d1; -- cgit v1.2.3