_syserrmsg.h 988 B

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