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.
9 #define __SYSERRMSG_H 1
11 #include <bits/uClibc_uintmaxtostr.h>
13 /**********************************************************************/
14 /* NOTE: If we ever do internationalized syserr messages, this will
15 * have to be changed! */
17 #if defined(__mips__) || defined(__sparc__)
18 /* sparce and mips have an extra error entry, as EDEADLK and EDEADLOCK have
19 * different meanings on those platforms. */
20 # define _SYS_NERR 126
22 # define _SYS_NERR 125
25 #ifdef __UCLIBC_HAS_ERRNO_MESSAGES__
26 # define _SYS_ERRMSG_MAXLEN 50
27 #else /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
28 # define _SYS_ERRMSG_MAXLEN 0
29 #endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
31 #if _SYS_ERRMSG_MAXLEN < __UIM_BUFLEN_INT + 14
32 # define _STRERROR_BUFSIZE (__UIM_BUFLEN_INT + 14)
34 # define _STRERROR_BUFSIZE _SYS_ERRMSG_MAXLEN