libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / _syserrmsg.h
blob8bd742e70a9e5fc7c0e73e4fcce0533b76543032
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 #ifndef __SYSERRMSG_H
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
21 #else
22 # define _SYS_NERR 125
23 #endif
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)
33 #else
34 # define _STRERROR_BUFSIZE _SYS_ERRMSG_MAXLEN
35 #endif
37 #endif