summaryrefslogtreecommitdiffstats
path: root/libc/string/__xpg_strerror_r.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-19 07:24:59 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-19 07:24:59 +0000
commit4295030e50db499e51d397af2f2c3a69cc13d96d (patch)
tree7d8065b8c01b30789f132332e7c8e4116bcf0f83 /libc/string/__xpg_strerror_r.c
parentfd5b87c1ff55e5c562d0387df2137608b73502ab (diff)
downloaduClibc-alpine-4295030e50db499e51d397af2f2c3a69cc13d96d.tar.bz2
uClibc-alpine-4295030e50db499e51d397af2f2c3a69cc13d96d.tar.xz
libc_hidden_proto moved to string.h
Diffstat (limited to 'libc/string/__xpg_strerror_r.c')
-rw-r--r--libc/string/__xpg_strerror_r.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libc/string/__xpg_strerror_r.c b/libc/string/__xpg_strerror_r.c
index c5096a6f7..001115261 100644
--- a/libc/string/__xpg_strerror_r.c
+++ b/libc/string/__xpg_strerror_r.c
@@ -5,14 +5,19 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
+/* Make sure we get proper strerror_r() prototype */
+#define strerror_r _hidestrerror_r
+
#include <features.h>
#include <errno.h>
#include <string.h>
#include "_syserrmsg.h"
+#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__
@@ -271,3 +276,4 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
#endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
libc_hidden_def(__xpg_strerror_r)
+weak_alias(__xpg_strerror_r, strerror_r)