summaryrefslogtreecommitdiffstats
path: root/private/crt32/h/syserr.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/crt32/h/syserr.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/crt32/h/syserr.h')
-rw-r--r--private/crt32/h/syserr.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/private/crt32/h/syserr.h b/private/crt32/h/syserr.h
new file mode 100644
index 000000000..86110449f
--- /dev/null
+++ b/private/crt32/h/syserr.h
@@ -0,0 +1,44 @@
+/***
+*syserr.h - constants/macros for error message routines
+*
+* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
+*
+*Purpose:
+* This file contains macros/constants for perror, strerror,
+* and _strerror.
+* [Internal]
+*
+*Revision History:
+* 08-15-89 GJF Fixed copyright
+* 10-30-89 GJF Fixed copyright (again)
+* 03-02-90 GJF Added #ifndef _INC_SYSERR stuff
+* 01-22-91 GJF ANSI naming.
+* 01-23-92 GJF Added support for crtdll.dll (have to redefine
+* _sys_nerr).
+* 10-01-92 GJF Increased _SYS_MSGMAX.
+* 02-23-93 SKS Update copyright to 1993
+*
+****/
+
+#ifndef _INC_SYSERR
+
+#ifdef _DLL
+#define _sys_nerr (*_sys_nerr_dll)
+#else
+#ifdef CRTDLL
+#define _sys_nerr _sys_nerr_dll
+#endif
+#endif
+
+/* Macro for perror, strerror, and _strerror */
+
+#define _sys_err_msg(m) _sys_errlist[(((m)<0)||((m)>=_sys_nerr)?_sys_nerr:(m))]
+
+/* Maximum length of an error message.
+ NOTE: This parameter value must be correspond to the length of the longest
+ message in sys_errlist (source module syserr.c). */
+
+#define _SYS_MSGMAX 38
+
+#define _INC_SYSERR
+#endif /* _INC_SYSERR */