lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 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 | #include <features.h> | ||||
9 | #include <string.h> | ||||
10 | #include "_syserrmsg.h" | ||||
11 | |||||
12 | |||||
13 | char *strerror(int errnum) | ||||
14 | { | ||||
15 | static char buf[_STRERROR_BUFSIZE]; | ||||
16 | |||||
17 | __xpg_strerror_r(errnum, buf, sizeof(buf)); | ||||
18 | |||||
19 | return buf; | ||||
20 | } | ||||
21 | libc_hidden_def(strerror) |