2015-06-02 Joseph Myers <joseph@codesourcery.com>
+ * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
+ * include/string.h (__strnlen): Use libc_hidden_proto.
+ * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
+ * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
+ (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
+ * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
+ (libc_hidden_def): Undefine and redefine.
+ * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
+ [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
+ __GI_strnlen.
+ * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
+ libc_hidden_def.
+ * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
+
[BZ #18469]
* wctype/wcfuncs.c (towlower): Rename to __towlower and define as
weak alias of __towlower. Use libc_hidden_weak.
extern char *__strsep_g (char **__stringp, const char *__delim);
libc_hidden_proto (__strsep_g)
libc_hidden_proto (strnlen)
+libc_hidden_proto (__strnlen)
libc_hidden_proto (memmem)
extern __typeof (memmem) __memmem;
libc_hidden_proto (__memmem)
return char_ptr - str;
}
#ifndef STRNLEN
+libc_hidden_def (__strnlen)
weak_alias (__strnlen, strnlen)
#endif
libc_hidden_def (strnlen)
mov len, limit
RET
END (__strnlen)
+libc_hidden_def (__strnlen)
weak_alias (__strnlen, strnlen)
libc_hidden_def (strnlen)
#ifdef SHARED
# undef libc_hidden_def
# define libc_hidden_def(name) \
- __hidden_ver1 (__strnlen_ia32, __GI_strnlen, __strnlen_ia32);
+ __hidden_ver1 (__strnlen_ia32, __GI_strnlen, __strnlen_ia32); \
+ strong_alias (__strnlen_ia32, __strnlen_ia32_1); \
+ __hidden_ver1 (__strnlen_ia32_1, __GI___strnlen, __strnlen_ia32_1);
#endif
#include "string/strnlen.c"
cfi_endproc; \
ASM_SIZE_DIRECTIVE(__strnlen_power7)
+#undef libc_hidden_def
+#define libc_hidden_def(name)
+
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name)
#ifdef SHARED
# undef libc_hidden_def
# define libc_hidden_def(name) \
- __hidden_ver1 (__strnlen_ppc, __GI_strnlen, __strnlen_ppc);
+ __hidden_ver1 (__strnlen_ppc, __GI_strnlen, __strnlen_ppc); \
+ strong_alias (__strnlen_ppc, __strnlen_ppc_1); \
+ __hidden_ver1 (__strnlen_ppc_1, __GI___strnlen, __strnlen_ppc_1);
#endif
#include <string/strnlen.c>
blr
END (__strnlen)
+libc_hidden_def (__strnlen)
weak_alias (__strnlen, strnlen)
libc_hidden_builtin_def (strnlen)
size_t len = ((const char *) p) + (CFZ (bits) >> 3) - s;
return (len < maxlen ? len : maxlen);
}
+libc_hidden_def (__strnlen)
weak_alias (__strnlen, strnlen)
libc_hidden_def (strnlen)