Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. /***
  2. *syserr.h - constants/macros for error message routines
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains macros/constants for perror, strerror,
  8. * and _strerror.
  9. *
  10. * [Internal]
  11. *
  12. *Revision History:
  13. * 08-15-89 GJF Fixed copyright
  14. * 10-30-89 GJF Fixed copyright (again)
  15. * 03-02-90 GJF Added #ifndef _INC_SYSERR stuff
  16. * 01-22-91 GJF ANSI naming.
  17. * 01-23-92 GJF Added support for crtdll.dll (have to redefine
  18. * _sys_nerr).
  19. * 10-01-92 GJF Increased _SYS_MSGMAX.
  20. * 02-23-93 SKS Update copyright to 1993
  21. * 04-04-93 SKS Switch to _declspec(dllimport) for exported data/funcs
  22. * 10-12-93 GJF Merged NT and Cuda versions.
  23. * 02-14-95 CFW Clean up Mac merge.
  24. * 03-29-95 CFW Add error message to internal headers.
  25. * 12-14-95 JWM Add "#pragma once".
  26. * 02-24-97 GJF Cleaned out obsolete support for _NTSDK. Also,
  27. * detab-ed.
  28. *
  29. ****/
  30. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  31. #pragma once
  32. #endif
  33. #ifndef _INC_SYSERR
  34. #define _INC_SYSERR
  35. #ifndef _CRTBLD
  36. /*
  37. * This is an internal C runtime header file. It is used when building
  38. * the C runtimes only. It is not to be used as a public header file.
  39. */
  40. #error ERROR: Use of C runtime library internal header file.
  41. #endif /* _CRTBLD */
  42. /* Macro for perror, strerror, and _strerror */
  43. #define _sys_err_msg(m) _sys_errlist[(((m)<0)||((m)>=_sys_nerr)?_sys_nerr:(m))]
  44. /* Maximum length of an error message.
  45. NOTE: This parameter value must be correspond to the length of the longest
  46. message in sys_errlist (source module syserr.c). */
  47. #define _SYS_MSGMAX 38
  48. #endif /* _INC_SYSERR */