libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / strerror.c
blob7250da07d307f5a66391fbddf7f0ab7159e1afa2
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 #include <features.h>
9 #include <string.h>
10 #include "_syserrmsg.h"
13 char *strerror(int errnum)
15 static char buf[_STRERROR_BUFSIZE];
17 __xpg_strerror_r(errnum, buf, sizeof(buf));
19 return buf;
21 libc_hidden_def(strerror)