diff options
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index c57671ea63..e145bfdb4c 100644 --- a/include/string.h +++ b/include/string.h @@ -46,6 +46,9 @@ extern int __ffs (int __i) __attribute__ ((const)); extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen); #endif +/* Get _STRING_ARCH_unaligned. */ +#include <string_private.h> + /* Now the real definitions. We do this here since some of the functions above are defined as macros in the headers. */ #include <string/string.h> @@ -118,6 +121,26 @@ libc_hidden_builtin_proto (strspn) libc_hidden_builtin_proto (strstr) libc_hidden_builtin_proto (ffs) +#if IS_IN (rtld) +extern __typeof (__stpcpy) __stpcpy attribute_hidden; +extern __typeof (__strdup) __strdup attribute_hidden; +extern __typeof (__strerror_r) __strerror_r attribute_hidden; +extern __typeof (__strsep_g) __strsep_g attribute_hidden; + +extern __typeof (memchr) memchr attribute_hidden; +extern __typeof (memcmp) memcmp attribute_hidden; +extern __typeof (memcpy) memcpy attribute_hidden; +extern __typeof (memmove) memmove attribute_hidden; +extern __typeof (memset) memset attribute_hidden; +extern __typeof (rawmemchr) rawmemchr attribute_hidden; +extern __typeof (stpcpy) stpcpy attribute_hidden; +extern __typeof (strchr) strchr attribute_hidden; +extern __typeof (strcmp) strcmp attribute_hidden; +extern __typeof (strlen) strlen attribute_hidden; +extern __typeof (strnlen) strnlen attribute_hidden; +extern __typeof (strsep) strsep attribute_hidden; +#endif + #if (!IS_IN (libc) || !defined SHARED) \ && !defined NO_MEMPCPY_STPCPY_REDIRECT /* Redirect calls to __builtin_mempcpy and __builtin_stpcpy to call |