summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 19:27:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 19:27:39 +0000
commit24d3cb8e5e2f3d149a54e18b3bdf588bc4d3bc3a (patch)
treea83ee88a440c147231444a1e9da28adb617e853b /libc/string
parentfaa7c8dc974c9b1565df3abff5c31b9626a4c3c6 (diff)
Hidden __xpg|glibc_strerror_r
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/wstring.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/libc/string/wstring.c b/libc/string/wstring.c
index b7c0d0124..c3ac10667 100644
--- a/libc/string/wstring.c
+++ b/libc/string/wstring.c
@@ -1483,7 +1483,7 @@ char attribute_hidden *__strerror(int errnum)
{
static char buf[_STRERROR_BUFSIZE];
- __xpg_strerror_r(errnum, buf, sizeof(buf));
+ __xpg_strerror_r_internal(errnum, buf, sizeof(buf));
return buf;
}
@@ -1636,7 +1636,8 @@ static const unsigned char estridx[] = {
#endif
-int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
+/* __xpg_strerror_r is used in header */
+int attribute_hidden __xpg_strerror_r_internal(int errnum, char *strerrbuf, size_t buflen)
{
register char *s;
int i, retval;
@@ -1714,7 +1715,7 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
#else /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
-int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
+int attribute_hidden __xpg_strerror_r_internal(int errnum, char *strerrbuf, size_t buflen)
{
register char *s;
int i, retval;
@@ -1750,6 +1751,7 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
}
#endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
+strong_alias(__xpg_strerror_r_internal,__xpg_strerror_r)
#endif
/**********************************************************************/
@@ -1757,14 +1759,15 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
/**********************************************************************/
#ifdef L___glibc_strerror_r
-char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
+char attribute_hidden *__glibc_strerror_r_internal(int errnum, char *strerrbuf, size_t buflen)
{
- __xpg_strerror_r(errnum, strerrbuf, buflen);
+ __xpg_strerror_r_internal(errnum, strerrbuf, buflen);
return strerrbuf;
}
-weak_alias(__glibc_strerror_r, __strerror_r)
+strong_alias(__glibc_strerror_r_internal,__glibc_strerror_r)
+weak_alias(__glibc_strerror_r_internal, __strerror_r)
#endif
/**********************************************************************/
#ifdef L_memmem