OSDN Git Service

nptl: rephrase *.sym handling
[uclinux-h8/uClibc.git] / libc / string / __glibc_strerror_r.c
1 /*
2  * Copyright (C) 2002     Manuel Novoa III
3  * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
4  *
5  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6  */
7
8 /* get rid of REDIRECT */
9 #define strerror_r __hide_strerror_r
10
11 #include <features.h>
12 #include <string.h>
13
14 #undef strerror_r
15
16 char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
17 {
18     __xpg_strerror_r(errnum, strerrbuf, buflen);
19
20     return strerrbuf;
21 }
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