summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/__xpg_strerror_r.c4
-rw-r--r--libc/string/_collate.c8
-rw-r--r--libc/string/basename.c2
-rw-r--r--libc/string/bcopy.c2
-rw-r--r--libc/string/bzero.c2
-rw-r--r--libc/string/cris/memcpy.c2
-rw-r--r--libc/string/cris/memmove.c2
-rw-r--r--libc/string/cris/memset.c2
-rw-r--r--libc/string/cris/strcpy.c2
-rw-r--r--libc/string/cris/strncpy.c4
-rw-r--r--libc/string/ffs.c2
-rw-r--r--libc/string/frv/memset.S2
-rw-r--r--libc/string/generic/memchr.c2
-rw-r--r--libc/string/generic/memcmp.c2
-rw-r--r--libc/string/generic/memcpy.c2
-rw-r--r--libc/string/generic/memmem.c4
-rw-r--r--libc/string/generic/memmove.c4
-rw-r--r--libc/string/generic/mempcpy.c4
-rw-r--r--libc/string/generic/memrchr.c2
-rw-r--r--libc/string/generic/memset.c2
-rw-r--r--libc/string/generic/rawmemchr.c2
-rw-r--r--libc/string/generic/strcat.c2
-rw-r--r--libc/string/generic/strchr.c2
-rw-r--r--libc/string/generic/strchrnul.c2
-rw-r--r--libc/string/generic/strcmp.c4
-rw-r--r--libc/string/generic/strcpy.c2
-rw-r--r--libc/string/generic/strcspn.c4
-rw-r--r--libc/string/generic/strlen.c2
-rw-r--r--libc/string/generic/strncat.c2
-rw-r--r--libc/string/generic/strncmp.c2
-rw-r--r--libc/string/generic/strncpy.c2
-rw-r--r--libc/string/generic/strnlen.c2
-rw-r--r--libc/string/generic/strrchr.c4
-rw-r--r--libc/string/generic/strsep.c6
-rw-r--r--libc/string/generic/strspn.c2
-rw-r--r--libc/string/generic/strstr.c2
-rw-r--r--libc/string/generic/strtok_r.c10
-rw-r--r--libc/string/i386/memchr.c2
-rw-r--r--libc/string/i386/memcpy.c2
-rw-r--r--libc/string/i386/memmove.c2
-rw-r--r--libc/string/i386/memset.c2
-rw-r--r--libc/string/i386/strcat.c2
-rw-r--r--libc/string/i386/strchr.c2
-rw-r--r--libc/string/i386/strcmp.c4
-rw-r--r--libc/string/i386/strcpy.c2
-rw-r--r--libc/string/i386/strlen.c2
-rw-r--r--libc/string/i386/strncat.c2
-rw-r--r--libc/string/i386/strncmp.c2
-rw-r--r--libc/string/i386/strncpy.c2
-rw-r--r--libc/string/i386/strnlen.c2
-rw-r--r--libc/string/i386/strrchr.c2
-rw-r--r--libc/string/memcmp.c2
-rw-r--r--libc/string/memmem.c2
-rw-r--r--libc/string/memmove.c2
-rw-r--r--libc/string/memrchr.c2
-rw-r--r--libc/string/memset.c2
-rw-r--r--libc/string/powerpc/memcpy.c2
-rw-r--r--libc/string/powerpc/memmove.c4
-rw-r--r--libc/string/powerpc/memset.c2
-rw-r--r--libc/string/psignal.c2
-rw-r--r--libc/string/rawmemchr.c2
-rw-r--r--libc/string/stpcpy.c2
-rw-r--r--libc/string/stpncpy.c2
-rw-r--r--libc/string/strcasecmp.c4
-rw-r--r--libc/string/strcasestr.c1
-rw-r--r--libc/string/strcspn.c2
-rw-r--r--libc/string/strdup.c6
-rw-r--r--libc/string/strerror.c2
-rw-r--r--libc/string/strlcpy.c4
-rw-r--r--libc/string/strncasecmp.c4
-rw-r--r--libc/string/strncat.c2
-rw-r--r--libc/string/strncmp.c2
-rw-r--r--libc/string/strncpy.c2
-rw-r--r--libc/string/strndup.c6
-rw-r--r--libc/string/strrchr.c2
-rw-r--r--libc/string/strsep.c6
-rw-r--r--libc/string/strsignal.c4
-rw-r--r--libc/string/strstr.c2
-rw-r--r--libc/string/strtok.c3
-rw-r--r--libc/string/strtok_r.c6
80 files changed, 112 insertions, 110 deletions
diff --git a/libc/string/__xpg_strerror_r.c b/libc/string/__xpg_strerror_r.c
index f07237287..ce186a061 100644
--- a/libc/string/__xpg_strerror_r.c
+++ b/libc/string/__xpg_strerror_r.c
@@ -16,8 +16,8 @@
#undef strerror_r
libc_hidden_proto(__xpg_strerror_r)
-libc_hidden_proto(memcpy)
-libc_hidden_proto(strlen)
+/* Experimentally off - libc_hidden_proto(memcpy) */
+/* Experimentally off - libc_hidden_proto(strlen) */
#ifdef __UCLIBC_HAS_ERRNO_MESSAGES__
diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index 3009e4ebf..64b5d9608 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -19,10 +19,10 @@
#include <errno.h>
#include <assert.h>
-libc_hidden_proto(memset)
-libc_hidden_proto(memcpy)
-libc_hidden_proto(strlcpy)
-libc_hidden_proto(strcmp)
+/* Experimentally off - libc_hidden_proto(memset) */
+/* Experimentally off - libc_hidden_proto(memcpy) */
+/* Experimentally off - libc_hidden_proto(strlcpy) */
+/* Experimentally off - libc_hidden_proto(strcmp) */
#ifdef WANT_WIDE
libc_hidden_proto(wcsxfrm)
libc_hidden_proto(wcscmp)
diff --git a/libc/string/basename.c b/libc/string/basename.c
index 739eaec56..a076c20e9 100644
--- a/libc/string/basename.c
+++ b/libc/string/basename.c
@@ -8,7 +8,7 @@
#include "_string.h"
#ifdef __USE_GNU
-libc_hidden_proto(basename)
+/* Experimentally off - libc_hidden_proto(basename) */
char *basename(const char *path)
{
diff --git a/libc/string/bcopy.c b/libc/string/bcopy.c
index bd233cb9c..3aa7eab1e 100644
--- a/libc/string/bcopy.c
+++ b/libc/string/bcopy.c
@@ -9,7 +9,7 @@
#ifdef __UCLIBC_SUSV3_LEGACY__
-libc_hidden_proto(memmove)
+/* Experimentally off - libc_hidden_proto(memmove) */
void bcopy(const void *s2, void *s1, size_t n)
{
diff --git a/libc/string/bzero.c b/libc/string/bzero.c
index 519695cab..7498f795f 100644
--- a/libc/string/bzero.c
+++ b/libc/string/bzero.c
@@ -9,7 +9,7 @@
#ifdef __UCLIBC_SUSV3_LEGACY__
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
void bzero(void *s, size_t n)
{
diff --git a/libc/string/cris/memcpy.c b/libc/string/cris/memcpy.c
index a00688ab0..0cce37a30 100644
--- a/libc/string/cris/memcpy.c
+++ b/libc/string/cris/memcpy.c
@@ -66,7 +66,7 @@
void *memcpy(void *, const void *, unsigned int);
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memcpy) */
void *memcpy(void *pdst,
const void *psrc,
unsigned int pn)
diff --git a/libc/string/cris/memmove.c b/libc/string/cris/memmove.c
index 437637078..b6620afe0 100644
--- a/libc/string/cris/memmove.c
+++ b/libc/string/cris/memmove.c
@@ -27,7 +27,7 @@
#include "memcopy.h"
#include "../generic/pagecopy.h"
-libc_hidden_proto(memmove)
+/* Experimentally off - libc_hidden_proto(memmove) */
void *memmove (void *dest, const void *src, size_t len)
{
unsigned long int dstp = (long int) dest;
diff --git a/libc/string/cris/memset.c b/libc/string/cris/memset.c
index 2d1602c5d..9cc959a33 100644
--- a/libc/string/cris/memset.c
+++ b/libc/string/cris/memset.c
@@ -59,7 +59,7 @@
void *memset(void *, int, unsigned long);
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
void *memset(void *pdst,
int c,
unsigned long plen)
diff --git a/libc/string/cris/strcpy.c b/libc/string/cris/strcpy.c
index 0af25253e..955a990b7 100644
--- a/libc/string/cris/strcpy.c
+++ b/libc/string/cris/strcpy.c
@@ -6,7 +6,7 @@
#include <string.h>
-libc_hidden_proto(strcpy)
+/* Experimentally off - libc_hidden_proto(strcpy) */
char *strcpy(char *dest, const char *src)
{
char *ret = dest;
diff --git a/libc/string/cris/strncpy.c b/libc/string/cris/strncpy.c
index 93a6608bc..3f2775bdd 100644
--- a/libc/string/cris/strncpy.c
+++ b/libc/string/cris/strncpy.c
@@ -6,9 +6,9 @@
#include <string.h>
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
-libc_hidden_proto(strncpy)
+/* Experimentally off - libc_hidden_proto(strncpy) */
char *strncpy(char *dest, const char *src, size_t count)
{
char *ret = dest;
diff --git a/libc/string/ffs.c b/libc/string/ffs.c
index 9a68dc302..0857a3220 100644
--- a/libc/string/ffs.c
+++ b/libc/string/ffs.c
@@ -10,7 +10,7 @@
#include "_string.h"
#include <strings.h>
-libc_hidden_proto(ffs)
+/* Experimentally off - libc_hidden_proto(ffs) */
int ffs(int i)
{
diff --git a/libc/string/frv/memset.S b/libc/string/frv/memset.S
index 4e64550e4..477597dcd 100644
--- a/libc/string/frv/memset.S
+++ b/libc/string/frv/memset.S
@@ -155,4 +155,4 @@ memset:
bralr
.size memset, .-memset
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
diff --git a/libc/string/generic/memchr.c b/libc/string/generic/memchr.c
index 4b40e4d65..3c7c997bc 100644
--- a/libc/string/generic/memchr.c
+++ b/libc/string/generic/memchr.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <limits.h>
-libc_hidden_proto(memchr)
+/* Experimentally off - libc_hidden_proto(memchr) */
libc_hidden_proto(abort)
#include "memcopy.h"
diff --git a/libc/string/generic/memcmp.c b/libc/string/generic/memcmp.c
index b0d05cf8a..e9767edef 100644
--- a/libc/string/generic/memcmp.c
+++ b/libc/string/generic/memcmp.c
@@ -21,7 +21,7 @@
#include <string.h>
#include "memcopy.h"
-libc_hidden_proto(memcmp)
+/* Experimentally off - libc_hidden_proto(memcmp) */
#include <endian.h>
diff --git a/libc/string/generic/memcpy.c b/libc/string/generic/memcpy.c
index 9d8764105..fa6606ceb 100644
--- a/libc/string/generic/memcpy.c
+++ b/libc/string/generic/memcpy.c
@@ -23,7 +23,7 @@
#include "memcopy.h"
#include "pagecopy.h"
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memcpy) */
/* _wordcopy_fwd_aligned -- Copy block beginning at SRCP to
block beginning at DSTP with LEN `op_t' words (not LEN bytes!).
diff --git a/libc/string/generic/memmem.c b/libc/string/generic/memmem.c
index 5d4e6f151..c75bb2426 100644
--- a/libc/string/generic/memmem.c
+++ b/libc/string/generic/memmem.c
@@ -20,8 +20,8 @@
#include <stddef.h>
#ifdef __USE_GNU
-libc_hidden_proto(memmem)
-libc_hidden_proto(memcmp)
+/* Experimentally off - libc_hidden_proto(memmem) */
+/* Experimentally off - libc_hidden_proto(memcmp) */
/* Return the first occurrence of NEEDLE in HAYSTACK. */
void *memmem (const void *haystack, size_t haystack_len,
diff --git a/libc/string/generic/memmove.c b/libc/string/generic/memmove.c
index dca74ae74..b2a017b16 100644
--- a/libc/string/generic/memmove.c
+++ b/libc/string/generic/memmove.c
@@ -24,8 +24,8 @@
#include "memcopy.h"
#include "pagecopy.h"
-libc_hidden_proto(memmove)
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memmove) */
+/* Experimentally off - libc_hidden_proto(memcpy) */
static void _wordcopy_bwd_aligned (long int dstp, long int srcp, size_t len)
{
diff --git a/libc/string/generic/mempcpy.c b/libc/string/generic/mempcpy.c
index c80caac8f..8d7356486 100644
--- a/libc/string/generic/mempcpy.c
+++ b/libc/string/generic/mempcpy.c
@@ -8,8 +8,8 @@
#include <string.h>
#ifdef __USE_GNU
-libc_hidden_proto(mempcpy)
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(mempcpy) */
+/* Experimentally off - libc_hidden_proto(memcpy) */
void *mempcpy (void *dstpp, const void *srcpp, size_t len)
{
diff --git a/libc/string/generic/memrchr.c b/libc/string/generic/memrchr.c
index 43439d5ce..9ab805cf7 100644
--- a/libc/string/generic/memrchr.c
+++ b/libc/string/generic/memrchr.c
@@ -27,7 +27,7 @@
#include <limits.h>
#ifdef __USE_GNU
-libc_hidden_proto(memrchr)
+/* Experimentally off - libc_hidden_proto(memrchr) */
libc_hidden_proto(abort)
#include "memcopy.h"
diff --git a/libc/string/generic/memset.c b/libc/string/generic/memset.c
index 50803cac5..62cc36fe3 100644
--- a/libc/string/generic/memset.c
+++ b/libc/string/generic/memset.c
@@ -19,7 +19,7 @@
#include <string.h>
#include "memcopy.h"
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
void *memset (void *dstpp, int c, size_t len)
{
long int dstp = (long int) dstpp;
diff --git a/libc/string/generic/rawmemchr.c b/libc/string/generic/rawmemchr.c
index 6bf245265..f8b97a61d 100644
--- a/libc/string/generic/rawmemchr.c
+++ b/libc/string/generic/rawmemchr.c
@@ -26,7 +26,7 @@
#include <limits.h>
#ifdef __USE_GNU
-libc_hidden_proto(rawmemchr)
+/* Experimentally off - libc_hidden_proto(rawmemchr) */
libc_hidden_proto(abort)
#include "memcopy.h"
diff --git a/libc/string/generic/strcat.c b/libc/string/generic/strcat.c
index 53c4d0d9e..e00494038 100644
--- a/libc/string/generic/strcat.c
+++ b/libc/string/generic/strcat.c
@@ -19,7 +19,7 @@
#include <string.h>
#include "memcopy.h"
-libc_hidden_proto(strcat)
+/* Experimentally off - libc_hidden_proto(strcat) */
/* Append SRC on the end of DEST. */
char *strcat (char *dest, const char *src)
{
diff --git a/libc/string/generic/strchr.c b/libc/string/generic/strchr.c
index 985b78b5a..66aed1e25 100644
--- a/libc/string/generic/strchr.c
+++ b/libc/string/generic/strchr.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <stdlib.h>
-libc_hidden_proto(strchr)
+/* Experimentally off - libc_hidden_proto(strchr) */
libc_hidden_proto(abort)
#include "memcopy.h"
diff --git a/libc/string/generic/strchrnul.c b/libc/string/generic/strchrnul.c
index 17e32ab44..72cab2891 100644
--- a/libc/string/generic/strchrnul.c
+++ b/libc/string/generic/strchrnul.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#ifdef __USE_GNU
-libc_hidden_proto(strchrnul)
+/* Experimentally off - libc_hidden_proto(strchrnul) */
libc_hidden_proto(abort)
#include "memcopy.h"
diff --git a/libc/string/generic/strcmp.c b/libc/string/generic/strcmp.c
index 21c896986..50acd3548 100644
--- a/libc/string/generic/strcmp.c
+++ b/libc/string/generic/strcmp.c
@@ -20,7 +20,7 @@
#include "memcopy.h"
-libc_hidden_proto(strcmp)
+/* Experimentally off - libc_hidden_proto(strcmp) */
/* Compare S1 and S2, returning less than, equal to or
greater than zero if S1 is lexicographically less than,
equal to or greater than S2. */
@@ -44,7 +44,7 @@ int strcmp (const char *p1, const char *p2)
libc_hidden_weak(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/generic/strcpy.c b/libc/string/generic/strcpy.c
index 7e558ead1..99e077139 100644
--- a/libc/string/generic/strcpy.c
+++ b/libc/string/generic/strcpy.c
@@ -22,7 +22,7 @@
#include "memcopy.h"
#include "bp-checks.h"
-libc_hidden_proto(strcpy)
+/* Experimentally off - libc_hidden_proto(strcpy) */
/* Copy SRC to DEST. */
char *strcpy (char *dest, const char *src)
{
diff --git a/libc/string/generic/strcspn.c b/libc/string/generic/strcspn.c
index 1b5e465ea..b65b3b995 100644
--- a/libc/string/generic/strcspn.c
+++ b/libc/string/generic/strcspn.c
@@ -18,8 +18,8 @@
#include <string.h>
-libc_hidden_proto(strcspn)
-libc_hidden_proto(strchr)
+/* Experimentally off - libc_hidden_proto(strcspn) */
+/* Experimentally off - libc_hidden_proto(strchr) */
/* Return the length of the maximum initial segment of S
which contains no characters from REJECT. */
diff --git a/libc/string/generic/strlen.c b/libc/string/generic/strlen.c
index 7e9b12fb9..764dae18d 100644
--- a/libc/string/generic/strlen.c
+++ b/libc/string/generic/strlen.c
@@ -22,7 +22,7 @@
#include <string.h>
#include <stdlib.h>
-libc_hidden_proto(strlen)
+/* Experimentally off - libc_hidden_proto(strlen) */
libc_hidden_proto(abort)
/* Return the length of the null-terminated string STR. Scan for
diff --git a/libc/string/generic/strncat.c b/libc/string/generic/strncat.c
index 9e0dfcd78..8e3423e49 100644
--- a/libc/string/generic/strncat.c
+++ b/libc/string/generic/strncat.c
@@ -20,7 +20,7 @@
#include "memcopy.h"
-libc_hidden_proto(strncat)
+/* Experimentally off - libc_hidden_proto(strncat) */
char *strncat (char *s1, const char *s2, size_t n)
{
reg_char c;
diff --git a/libc/string/generic/strncmp.c b/libc/string/generic/strncmp.c
index 12e0e4d17..c49f36d8b 100644
--- a/libc/string/generic/strncmp.c
+++ b/libc/string/generic/strncmp.c
@@ -19,7 +19,7 @@
#include <string.h>
#include "memcopy.h"
-libc_hidden_proto(strncmp)
+/* Experimentally off - libc_hidden_proto(strncmp) */
/* Compare no more than N characters of S1 and S2,
returning less than, equal to or greater than zero
if S1 is lexicographically less than, equal to or
diff --git a/libc/string/generic/strncpy.c b/libc/string/generic/strncpy.c
index 4b0b0894e..d2d693f2b 100644
--- a/libc/string/generic/strncpy.c
+++ b/libc/string/generic/strncpy.c
@@ -19,7 +19,7 @@
#include <string.h>
#include "memcopy.h"
-libc_hidden_proto(strncpy)
+/* Experimentally off - libc_hidden_proto(strncpy) */
char *strncpy (char *s1, const char *s2, size_t n)
{
reg_char c;
diff --git a/libc/string/generic/strnlen.c b/libc/string/generic/strnlen.c
index 3156e469a..d9ba76129 100644
--- a/libc/string/generic/strnlen.c
+++ b/libc/string/generic/strnlen.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#ifdef __USE_GNU
-libc_hidden_proto(strnlen)
+/* Experimentally off - libc_hidden_proto(strnlen) */
libc_hidden_proto(abort)
/* Find the length of S, but scan at most MAXLEN characters. If no
diff --git a/libc/string/generic/strrchr.c b/libc/string/generic/strrchr.c
index fe7118a49..c85707241 100644
--- a/libc/string/generic/strrchr.c
+++ b/libc/string/generic/strrchr.c
@@ -18,8 +18,8 @@
#include <string.h>
-libc_hidden_proto(strrchr)
-libc_hidden_proto(strchr)
+/* Experimentally off - libc_hidden_proto(strrchr) */
+/* Experimentally off - libc_hidden_proto(strchr) */
/* Find the last occurrence of C in S. */
char *strrchr (const char *s, int c)
diff --git a/libc/string/generic/strsep.c b/libc/string/generic/strsep.c
index 5cb1779d2..e02e57068 100644
--- a/libc/string/generic/strsep.c
+++ b/libc/string/generic/strsep.c
@@ -20,10 +20,10 @@
#ifdef __USE_BSD
-libc_hidden_proto(strchr)
-libc_hidden_proto(strpbrk)
+/* Experimentally off - libc_hidden_proto(strchr) */
+/* Experimentally off - libc_hidden_proto(strpbrk) */
-libc_hidden_proto(strsep)
+/* Experimentally off - libc_hidden_proto(strsep) */
char *strsep (char **stringp, const char *delim)
{
char *begin, *end;
diff --git a/libc/string/generic/strspn.c b/libc/string/generic/strspn.c
index a194fdc7d..010567744 100644
--- a/libc/string/generic/strspn.c
+++ b/libc/string/generic/strspn.c
@@ -18,7 +18,7 @@
#include <string.h>
-libc_hidden_proto(strspn)
+/* Experimentally off - libc_hidden_proto(strspn) */
/* Return the length of the maximum initial segment
of S which contains only characters in ACCEPT. */
size_t strspn (const char *s, const char *accept)
diff --git a/libc/string/generic/strstr.c b/libc/string/generic/strstr.c
index f151a820a..c12dceb33 100644
--- a/libc/string/generic/strstr.c
+++ b/libc/string/generic/strstr.c
@@ -28,7 +28,7 @@
#include <string.h>
-libc_hidden_proto(strstr)
+/* Experimentally off - libc_hidden_proto(strstr) */
typedef unsigned chartype;
diff --git a/libc/string/generic/strtok_r.c b/libc/string/generic/strtok_r.c
index bae394a80..d082d226e 100644
--- a/libc/string/generic/strtok_r.c
+++ b/libc/string/generic/strtok_r.c
@@ -19,15 +19,15 @@
#include <string.h>
-libc_hidden_proto(strtok_r)
-libc_hidden_proto(strspn)
-libc_hidden_proto(strpbrk)
+/* Experimentally off - libc_hidden_proto(strtok_r) */
+/* Experimentally off - libc_hidden_proto(strspn) */
+/* Experimentally off - libc_hidden_proto(strpbrk) */
#ifdef __USE_GNU
# define __rawmemchr rawmemchr
-libc_hidden_proto(rawmemchr)
+/* Experimentally off - libc_hidden_proto(rawmemchr) */
#else
# define __rawmemchr strchr
-libc_hidden_proto(strchr)
+/* Experimentally off - libc_hidden_proto(strchr) */
#endif
/* Parse S into tokens separated by characters in DELIM.
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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
-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 <string.h>
#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 <string.h>
-libc_hidden_proto(strrchr)
+/* Experimentally off - libc_hidden_proto(strrchr) */
char *strrchr(const char *s, int c)
{
int d0, d1;
diff --git a/libc/string/memcmp.c b/libc/string/memcmp.c
index 377a8d692..762fc23c1 100644
--- a/libc/string/memcmp.c
+++ b/libc/string/memcmp.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wmemcmp wmemcmp
#else
-libc_hidden_proto(memcmp)
+/* Experimentally off - libc_hidden_proto(memcmp) */
# define Wmemcmp memcmp
#endif
diff --git a/libc/string/memmem.c b/libc/string/memmem.c
index fd60f1e7b..9dcd4c4c0 100644
--- a/libc/string/memmem.c
+++ b/libc/string/memmem.c
@@ -8,7 +8,7 @@
#include "_string.h"
#ifdef __USE_GNU
-libc_hidden_proto(memmem)
+/* Experimentally off - libc_hidden_proto(memmem) */
void *memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen)
{
diff --git a/libc/string/memmove.c b/libc/string/memmove.c
index 3cdcca116..0bea9b497 100644
--- a/libc/string/memmove.c
+++ b/libc/string/memmove.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wmemmove wmemmove
#else
-libc_hidden_proto(memmove)
+/* Experimentally off - libc_hidden_proto(memmove) */
# define Wmemmove memmove
#endif
diff --git a/libc/string/memrchr.c b/libc/string/memrchr.c
index 2959396b2..b2f9001cd 100644
--- a/libc/string/memrchr.c
+++ b/libc/string/memrchr.c
@@ -9,7 +9,7 @@
#ifdef __USE_GNU
-libc_hidden_proto(memrchr)
+/* Experimentally off - libc_hidden_proto(memrchr) */
void *memrchr(const void *s, int c, size_t n)
{
diff --git a/libc/string/memset.c b/libc/string/memset.c
index 2f3fc271d..6dd20d668 100644
--- a/libc/string/memset.c
+++ b/libc/string/memset.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wmemset wmemset
#else
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
# define Wmemset memset
#endif
diff --git a/libc/string/powerpc/memcpy.c b/libc/string/powerpc/memcpy.c
index ed8022313..bcbb806f8 100644
--- a/libc/string/powerpc/memcpy.c
+++ b/libc/string/powerpc/memcpy.c
@@ -21,7 +21,7 @@
#include <string.h>
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memcpy) */
void *memcpy(void *to, const void *from, size_t n)
/* PPC can do pre increment and load/store, but not post increment and load/store.
Therefore use *++ptr instead of *ptr++. */
diff --git a/libc/string/powerpc/memmove.c b/libc/string/powerpc/memmove.c
index 327161116..7a4a7e5ff 100644
--- a/libc/string/powerpc/memmove.c
+++ b/libc/string/powerpc/memmove.c
@@ -21,9 +21,9 @@
#include <string.h>
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memcpy) */
-libc_hidden_proto(memmove)
+/* Experimentally off - libc_hidden_proto(memmove) */
void *memmove(void *to, const void *from, size_t n)
{
unsigned long rem, chunks, tmp1, tmp2;
diff --git a/libc/string/powerpc/memset.c b/libc/string/powerpc/memset.c
index 93a2c48b2..d62ec0ee0 100644
--- a/libc/string/powerpc/memset.c
+++ b/libc/string/powerpc/memset.c
@@ -21,7 +21,7 @@
#include <string.h>
-libc_hidden_proto(memset)
+/* Experimentally off - libc_hidden_proto(memset) */
static inline int expand_byte_word(int c){
/* this does:
diff --git a/libc/string/psignal.c b/libc/string/psignal.c
index 467e3bc37..1ca8725db 100644
--- a/libc/string/psignal.c
+++ b/libc/string/psignal.c
@@ -11,7 +11,7 @@
#include <signal.h>
libc_hidden_proto(fprintf)
-libc_hidden_proto(strsignal)
+/* Experimentally off - libc_hidden_proto(strsignal) */
/* TODO: make this threadsafe with a reentrant version of strsignal? */
diff --git a/libc/string/rawmemchr.c b/libc/string/rawmemchr.c
index 1bbcb01b5..3cddefa10 100644
--- a/libc/string/rawmemchr.c
+++ b/libc/string/rawmemchr.c
@@ -8,7 +8,7 @@
#include "_string.h"
#ifdef __USE_GNU
-libc_hidden_proto(rawmemchr)
+/* Experimentally off - libc_hidden_proto(rawmemchr) */
void *rawmemchr(const void *s, int c)
{
register const unsigned char *r = s;
diff --git a/libc/string/stpcpy.c b/libc/string/stpcpy.c
index f34b9f65a..8a487584e 100644
--- a/libc/string/stpcpy.c
+++ b/libc/string/stpcpy.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstpcpy wcpcpy
#else
-libc_hidden_proto(stpcpy)
+/* Experimentally off - libc_hidden_proto(stpcpy) */
# define Wstpcpy stpcpy
#endif
diff --git a/libc/string/stpncpy.c b/libc/string/stpncpy.c
index 2603d2bd0..dac8471fd 100644
--- a/libc/string/stpncpy.c
+++ b/libc/string/stpncpy.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstpncpy wcpncpy
#else
-libc_hidden_proto(stpncpy)
+/* Experimentally off - libc_hidden_proto(stpncpy) */
# define Wstpncpy stpncpy
#endif
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c
index 7fa521fb7..2aa2e7776 100644
--- a/libc/string/strcasecmp.c
+++ b/libc/string/strcasecmp.c
@@ -35,9 +35,9 @@ libc_hidden_proto(tolower)
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
-libc_hidden_proto(strcasecmp_l)
+/* Experimentally off - libc_hidden_proto(strcasecmp_l) */
-libc_hidden_proto(strcasecmp)
+/* Experimentally off - libc_hidden_proto(strcasecmp) */
int strcasecmp(register const Wchar *s1, register const Wchar *s2)
{
return strcasecmp_l(s1, s2, __UCLIBC_CURLOCALE);
diff --git a/libc/string/strcasestr.c b/libc/string/strcasestr.c
index afef59985..ab588c052 100644
--- a/libc/string/strcasestr.c
+++ b/libc/string/strcasestr.c
@@ -54,3 +54,4 @@ char *strcasestr(const char *s1, const char *s2)
return (*p) ? NULL : (char *) s1;
#endif
}
+libc_hidden_def(strcasestr)
diff --git a/libc/string/strcspn.c b/libc/string/strcspn.c
index 75d2e081b..1ec460a15 100644
--- a/libc/string/strcspn.c
+++ b/libc/string/strcspn.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrcspn wcscspn
#else
-libc_hidden_proto(strcspn)
+/* Experimentally off - libc_hidden_proto(strcspn) */
# define Wstrcspn strcspn
#endif
diff --git a/libc/string/strdup.c b/libc/string/strdup.c
index fff74444c..61fc186c8 100644
--- a/libc/string/strdup.c
+++ b/libc/string/strdup.c
@@ -13,12 +13,12 @@ libc_hidden_proto(wcslen)
# define Wstrdup wcsdup
# define Wstrlen wcslen
#else
-libc_hidden_proto(strdup)
-libc_hidden_proto(strlen)
+/* Experimentally off - libc_hidden_proto(strdup) */
+/* Experimentally off - libc_hidden_proto(strlen) */
# define Wstrdup strdup
# define Wstrlen strlen
#endif
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(memcpy) */
Wchar *Wstrdup(register const Wchar *s1)
{
diff --git a/libc/string/strerror.c b/libc/string/strerror.c
index 1b5cb3ff2..355c7bdda 100644
--- a/libc/string/strerror.c
+++ b/libc/string/strerror.c
@@ -9,7 +9,7 @@
#include <string.h>
#include "_syserrmsg.h"
-libc_hidden_proto(strerror)
+/* Experimentally off - libc_hidden_proto(strerror) */
libc_hidden_proto(__xpg_strerror_r)
char *strerror(int errnum)
diff --git a/libc/string/strlcpy.c b/libc/string/strlcpy.c
index e888b85b2..cdad4dc5d 100644
--- a/libc/string/strlcpy.c
+++ b/libc/string/strlcpy.c
@@ -11,7 +11,7 @@
# define Wstrlcpy __wcslcpy
# define Wstrxfrm wcsxfrm
#else
-libc_hidden_proto(strlcpy)
+/* Experimentally off - libc_hidden_proto(strlcpy) */
# define Wstrlcpy strlcpy
# define Wstrxfrm strxfrm
#endif
@@ -52,7 +52,7 @@ size_t Wstrlcpy(register Wchar *__restrict dst,
#ifndef WANT_WIDE
libc_hidden_def(strlcpy)
#ifndef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(strxfrm)
+/* Experimentally off - libc_hidden_proto(strxfrm) */
strong_alias(strlcpy,strxfrm)
libc_hidden_def(strxfrm)
#endif
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index 9980dd704..bc0481fb2 100644
--- a/libc/string/strncasecmp.c
+++ b/libc/string/strncasecmp.c
@@ -35,9 +35,9 @@ libc_hidden_proto(tolower)
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
-libc_hidden_proto(strncasecmp_l)
+/* Experimentally off - libc_hidden_proto(strncasecmp_l) */
-libc_hidden_proto(strncasecmp)
+/* Experimentally off - libc_hidden_proto(strncasecmp) */
int strncasecmp(register const Wchar *s1, register const Wchar *s2, size_t n)
{
return strncasecmp_l(s1, s2, n, __UCLIBC_CURLOCALE);
diff --git a/libc/string/strncat.c b/libc/string/strncat.c
index 61170c369..be4dd9301 100644
--- a/libc/string/strncat.c
+++ b/libc/string/strncat.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrncat wcsncat
#else
-libc_hidden_proto(strncat)
+/* Experimentally off - libc_hidden_proto(strncat) */
# define Wstrncat strncat
#endif
diff --git a/libc/string/strncmp.c b/libc/string/strncmp.c
index 8cebaacac..84a2bd512 100644
--- a/libc/string/strncmp.c
+++ b/libc/string/strncmp.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrncmp wcsncmp
#else
-libc_hidden_proto(strncmp)
+/* Experimentally off - libc_hidden_proto(strncmp) */
# define Wstrncmp strncmp
#endif
diff --git a/libc/string/strncpy.c b/libc/string/strncpy.c
index 40da93dac..ea5e494c7 100644
--- a/libc/string/strncpy.c
+++ b/libc/string/strncpy.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrncpy wcsncpy
#else
-libc_hidden_proto(strncpy)
+/* Experimentally off - libc_hidden_proto(strncpy) */
# define Wstrncpy strncpy
#endif
diff --git a/libc/string/strndup.c b/libc/string/strndup.c
index 89c58ccec..96a36d404 100644
--- a/libc/string/strndup.c
+++ b/libc/string/strndup.c
@@ -8,9 +8,9 @@
#include "_string.h"
#include <stdlib.h>
-libc_hidden_proto(strndup)
-libc_hidden_proto(strnlen)
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(strndup) */
+/* Experimentally off - libc_hidden_proto(strnlen) */
+/* Experimentally off - libc_hidden_proto(memcpy) */
char *strndup(register const char *s1, size_t n)
{
diff --git a/libc/string/strrchr.c b/libc/string/strrchr.c
index 2bf676d27..253c4166d 100644
--- a/libc/string/strrchr.c
+++ b/libc/string/strrchr.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrrchr wcsrchr
#else
-libc_hidden_proto(strrchr)
+/* Experimentally off - libc_hidden_proto(strrchr) */
# define Wstrrchr strrchr
#endif
diff --git a/libc/string/strsep.c b/libc/string/strsep.c
index 2cc940def..373b00a71 100644
--- a/libc/string/strsep.c
+++ b/libc/string/strsep.c
@@ -9,10 +9,10 @@
#ifdef __USE_BSD
-libc_hidden_proto(strpbrk)
-libc_hidden_proto(strcspn)
+/* Experimentally off - libc_hidden_proto(strpbrk) */
+/* Experimentally off - libc_hidden_proto(strcspn) */
-libc_hidden_proto(strsep)
+/* Experimentally off - libc_hidden_proto(strsep) */
char *strsep(char ** __restrict s1, const char * __restrict s2)
{
register char *s = *s1;
diff --git a/libc/string/strsignal.c b/libc/string/strsignal.c
index f8b6a9e9f..ee083d649 100644
--- a/libc/string/strsignal.c
+++ b/libc/string/strsignal.c
@@ -18,8 +18,8 @@
#include <bits/uClibc_uintmaxtostr.h>
#include <signal.h>
-libc_hidden_proto(strsignal)
-libc_hidden_proto(memcpy)
+/* Experimentally off - libc_hidden_proto(strsignal) */
+/* Experimentally off - libc_hidden_proto(memcpy) */
#define _SYS_NSIG 32
diff --git a/libc/string/strstr.c b/libc/string/strstr.c
index 685a2f83c..05712e62b 100644
--- a/libc/string/strstr.c
+++ b/libc/string/strstr.c
@@ -10,7 +10,7 @@
#ifdef WANT_WIDE
# define Wstrstr wcsstr
#else
-libc_hidden_proto(strstr)
+/* Experimentally off - libc_hidden_proto(strstr) */
# define Wstrstr strstr
#endif
diff --git a/libc/string/strtok.c b/libc/string/strtok.c
index 127497c9d..159dd6b6a 100644
--- a/libc/string/strtok.c
+++ b/libc/string/strtok.c
@@ -15,10 +15,11 @@
# define Wstrtok_r strtok_r
#endif
-libc_hidden_proto(Wstrtok_r)
+/* Experimentally off - libc_hidden_proto(Wstrtok_r) */
Wchar *Wstrtok(Wchar * __restrict s1, const Wchar * __restrict s2)
{
static Wchar *next_start; /* Initialized to 0 since in bss. */
return Wstrtok_r(s1, s2, &next_start);
}
+libc_hidden_def(Wstrtok)
diff --git a/libc/string/strtok_r.c b/libc/string/strtok_r.c
index bda56d71c..2ad7746b1 100644
--- a/libc/string/strtok_r.c
+++ b/libc/string/strtok_r.c
@@ -14,9 +14,9 @@ libc_hidden_proto(wcspbrk)
# define Wstrspn wcsspn
# define Wstrpbrk wcspbrk
#else
-libc_hidden_proto(strtok_r)
-libc_hidden_proto(strspn)
-libc_hidden_proto(strpbrk)
+/* Experimentally off - libc_hidden_proto(strtok_r) */
+/* Experimentally off - libc_hidden_proto(strspn) */
+/* Experimentally off - libc_hidden_proto(strpbrk) */
# define Wstrtok_r strtok_r
# define Wstrspn strspn
# define Wstrpbrk strpbrk