libdl: end must be bigger than start
[uclibc-ng.git] / libc / string / __glibc_strerror_r.c
blob96b881700e853d4e2ae2eae1a58fdd5690a80edf
1 /*
2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
8 /* get rid of REDIRECT */
9 #define strerror_r __hide_strerror_r
11 #include <features.h>
12 #include <string.h>
14 #undef strerror_r
16 char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
18 __xpg_strerror_r(errnum, strerrbuf, buflen);
20 return strerrbuf;
22 libc_hidden_def(__glibc_strerror_r)
23 #if !defined __USE_XOPEN2K || defined __USE_GNU
24 strong_alias(__glibc_strerror_r,strerror_r)
25 #endif