OSDN Git Service

xtensa: add missing .literal_position directives
[uclinux-h8/uClibc.git] / libc / string / _syserrmsg.h
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 #ifndef __SYSERRMSG_H
9 #define __SYSERRMSG_H 1
10
11 #include <bits/uClibc_uintmaxtostr.h>
12
13 /**********************************************************************/
14 /* NOTE: If we ever do internationalized syserr messages, this will
15  * have to be changed! */
16
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
21 #else
22 # define _SYS_NERR                      125
23 #endif
24
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__ */
30
31 #if _SYS_ERRMSG_MAXLEN < __UIM_BUFLEN_INT + 14
32 # define _STRERROR_BUFSIZE (__UIM_BUFLEN_INT + 14)
33 #else
34 # define _STRERROR_BUFSIZE _SYS_ERRMSG_MAXLEN
35 #endif
36
37 #endif