| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | /* Errno module */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-03 08:30:55 -07:00
										 |  |  | // Need limited C API version 3.13 for Py_mod_gil
 | 
					
						
							| 
									
										
										
										
											2023-11-20 15:52:00 +02:00
										 |  |  | #include "pyconfig.h"   // Py_GIL_DISABLED
 | 
					
						
							|  |  |  | #ifndef Py_GIL_DISABLED
 | 
					
						
							| 
									
										
										
										
											2024-05-03 08:30:55 -07:00
										 |  |  | #  define Py_LIMITED_API 0x030d0000
 | 
					
						
							| 
									
										
										
										
											2023-10-30 12:06:09 -04:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2023-10-17 03:05:20 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #include "Python.h"
 | 
					
						
							| 
									
										
										
										
											2023-10-17 12:27:16 +02:00
										 |  |  | #include <errno.h>                // EPIPE
 | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-26 17:58:02 +00:00
										 |  |  | /* Windows socket errors (WSA*)  */ | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef MS_WINDOWS
 | 
					
						
							| 
									
										
										
										
											2023-10-17 03:05:20 +02:00
										 |  |  | #  ifndef WIN32_LEAN_AND_MEAN
 | 
					
						
							|  |  |  | #    define WIN32_LEAN_AND_MEAN
 | 
					
						
							|  |  |  | #  endif
 | 
					
						
							|  |  |  | #  include <windows.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    // The following constants were added to errno.h in VS2010 but have
 | 
					
						
							|  |  |  |    // preferred WSA equivalents.
 | 
					
						
							|  |  |  | #  undef EADDRINUSE
 | 
					
						
							|  |  |  | #  undef EADDRNOTAVAIL
 | 
					
						
							|  |  |  | #  undef EAFNOSUPPORT
 | 
					
						
							|  |  |  | #  undef EALREADY
 | 
					
						
							|  |  |  | #  undef ECONNABORTED
 | 
					
						
							|  |  |  | #  undef ECONNREFUSED
 | 
					
						
							|  |  |  | #  undef ECONNRESET
 | 
					
						
							|  |  |  | #  undef EDESTADDRREQ
 | 
					
						
							|  |  |  | #  undef EHOSTUNREACH
 | 
					
						
							|  |  |  | #  undef EINPROGRESS
 | 
					
						
							|  |  |  | #  undef EISCONN
 | 
					
						
							|  |  |  | #  undef ELOOP
 | 
					
						
							|  |  |  | #  undef EMSGSIZE
 | 
					
						
							|  |  |  | #  undef ENETDOWN
 | 
					
						
							|  |  |  | #  undef ENETRESET
 | 
					
						
							|  |  |  | #  undef ENETUNREACH
 | 
					
						
							|  |  |  | #  undef ENOBUFS
 | 
					
						
							|  |  |  | #  undef ENOPROTOOPT
 | 
					
						
							|  |  |  | #  undef ENOTCONN
 | 
					
						
							|  |  |  | #  undef ENOTSOCK
 | 
					
						
							|  |  |  | #  undef EOPNOTSUPP
 | 
					
						
							|  |  |  | #  undef EPROTONOSUPPORT
 | 
					
						
							|  |  |  | #  undef EPROTOTYPE
 | 
					
						
							|  |  |  | #  undef ETIMEDOUT
 | 
					
						
							|  |  |  | #  undef EWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Pull in the system error definitions | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyMethodDef errno_methods[] = { | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     {NULL,              NULL} | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | /* Helper function doing the dictionary inserting */ | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  | static int | 
					
						
							|  |  |  | _add_errcode(PyObject *module_dict, PyObject *error_dict, const char *name_str, int code_int) | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     PyObject *name = PyUnicode_FromString(name_str); | 
					
						
							|  |  |  |     if (!name) { | 
					
						
							|  |  |  |         return -1; | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     PyObject *code = PyLong_FromLong(code_int); | 
					
						
							|  |  |  |     if (!code) { | 
					
						
							|  |  |  |         Py_DECREF(name); | 
					
						
							|  |  |  |         return -1; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											1998-08-11 17:50:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     int ret = -1; | 
					
						
							|  |  |  |     /* insert in modules dict */ | 
					
						
							|  |  |  |     if (PyDict_SetItem(module_dict, name, code) < 0) { | 
					
						
							|  |  |  |         goto end; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     /* insert in errorcode dict */ | 
					
						
							|  |  |  |     if (PyDict_SetItem(error_dict, code, name) < 0) { | 
					
						
							|  |  |  |         goto end; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     ret = 0; | 
					
						
							|  |  |  | end: | 
					
						
							|  |  |  |     Py_DECREF(name); | 
					
						
							|  |  |  |     Py_DECREF(code); | 
					
						
							|  |  |  |     return ret; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2008-06-11 05:26:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  | static int | 
					
						
							|  |  |  | errno_exec(PyObject *module) | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-06-09 21:57:25 +02:00
										 |  |  |     PyObject *module_dict = PyModule_GetDict(module);  // Borrowed ref.
 | 
					
						
							|  |  |  |     if (module_dict == NULL) { | 
					
						
							|  |  |  |         return -1; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     PyObject *error_dict = PyDict_New(); | 
					
						
							| 
									
										
										
										
											2023-06-09 21:57:25 +02:00
										 |  |  |     if (error_dict == NULL) { | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |         return -1; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     if (PyDict_SetItemString(module_dict, "errorcode", error_dict) < 0) { | 
					
						
							|  |  |  |         Py_DECREF(error_dict); | 
					
						
							|  |  |  |         return -1; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-11-04 20:22:24 +00:00
										 |  |  | /* Macro so I don't have to edit each and every line below... */ | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  | #define add_errcode(name, code, comment)                               \
 | 
					
						
							|  |  |  |     do {                                                               \ | 
					
						
							|  |  |  |         if (_add_errcode(module_dict, error_dict, name, code) < 0) {   \ | 
					
						
							|  |  |  |             Py_DECREF(error_dict);                                     \ | 
					
						
							|  |  |  |             return -1;                                                 \ | 
					
						
							|  |  |  |         }                                                              \ | 
					
						
							|  |  |  |     } while (0); | 
					
						
							| 
									
										
										
										
											1997-11-04 20:22:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     /*
 | 
					
						
							|  |  |  |      * The names and comments are borrowed from linux/include/errno.h, | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  |      * which should be pretty all-inclusive.  However, the Solaris specific | 
					
						
							|  |  |  |      * names and comments are borrowed from sys/errno.h in Solaris. | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  |      * MacOSX specific names and comments are borrowed from sys/errno.h in | 
					
						
							|  |  |  |      * MacOSX. | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENODEV
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENODEV", ENODEV, "No such device"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOCSI
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOCSI", ENOCSI, "No CSI structure available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EHOSTUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EHOSTUNREACH", EHOSTUNREACH, "No route to host"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEHOSTUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOMSG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOMSG", ENOMSG, "No message of desired type"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EUCLEAN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EUCLEAN", EUCLEAN, "Structure needs cleaning"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL2NSYNC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EL2NSYNC", EL2NSYNC, "Level 2 not synchronized"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL2HLT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EL2HLT", EL2HLT, "Level 2 halted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENODATA
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENODATA", ENODATA, "No data available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTBLK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTBLK", ENOTBLK, "Block device required"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSYS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOSYS", ENOSYS, "Function not implemented"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPIPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPIPE", EPIPE, "Broken pipe"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINVAL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINVAL", EINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINVAL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINVAL", WSAEINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOVERFLOW
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EOVERFLOW", EOVERFLOW, "Value too large for defined data type"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EADV
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EADV", EADV, "Advertise error"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINTR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINTR", EINTR, "Interrupted system call"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINTR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINTR", WSAEINTR, "Interrupted system call"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EUSERS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EUSERS", EUSERS, "Too many users"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEUSERS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EUSERS", WSAEUSERS, "Too many users"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOTEMPTY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTEMPTY", ENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTEMPTY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOBUFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOBUFS", ENOBUFS, "No buffer space available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOBUFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOBUFS", WSAENOBUFS, "No buffer space available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROTO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROTO", EPROTO, "Protocol error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EREMOTE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EREMOTE", EREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEREMOTE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EREMOTE", WSAEREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENAVAIL", ENAVAIL, "No XENIX semaphores available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECHILD
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECHILD", ECHILD, "No child processes"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ELOOP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELOOP", ELOOP, "Too many symbolic links encountered"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAELOOP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELOOP", WSAELOOP, "Too many symbolic links encountered"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EXDEV
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EXDEV", EXDEV, "Cross-device link"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef E2BIG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("E2BIG", E2BIG, "Arg list too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESRCH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESRCH", ESRCH, "No such process"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMSGSIZE", EMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMSGSIZE", WSAEMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EAFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEAFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADR", EBADR, "Invalid request descriptor"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EHOSTDOWN", EHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EHOSTDOWN", WSAEHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOPROTOOPT", ENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBUSY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBUSY", EBUSY, "Device or resource busy"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EWOULDBLOCK", EWOULDBLOCK, "Operation would block"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EBADFD
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADFD", EBADFD, "File descriptor in bad state"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDOTDOT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDOTDOT", EDOTDOT, "RFS specific error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EISCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EISCONN", EISCONN, "Transport endpoint is already connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEISCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EISCONN", WSAEISCONN, "Transport endpoint is already connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOANO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOANO", ENOANO, "No anode"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2022-07-26 11:16:51 +02:00
										 |  |  | #if defined(__wasi__) && !defined(ESHUTDOWN)
 | 
					
						
							|  |  |  |     // WASI SDK 16 does not have ESHUTDOWN, shutdown results in EPIPE.
 | 
					
						
							|  |  |  |     #define ESHUTDOWN EPIPE
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECHRNG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECHRNG", ECHRNG, "Channel number out of range"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBBAD
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELIBBAD", ELIBBAD, "Accessing a corrupted shared library"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENONET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENONET", ENONET, "Machine is not on the network"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADE", EBADE, "Invalid exchange"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADF
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADF", EBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEBADF
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADF", WSAEBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMULTIHOP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMULTIHOP", EMULTIHOP, "Multihop attempted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EIO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EIO", EIO, "I/O error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EUNATCH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EUNATCH", EUNATCH, "Protocol driver not attached"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSPC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOSPC", ENOSPC, "No space left on device"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOEXEC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOEXEC", ENOEXEC, "Exec format error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EALREADY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EALREADY", EALREADY, "Operation already in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEALREADY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EALREADY", WSAEALREADY, "Operation already in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENETDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETDOWN", ENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETDOWN", WSAENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTNAM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTNAM", ENOTNAM, "Not a XENIX named type file"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EACCES
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EACCES", EACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEACCES
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EACCES", WSAEACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELNRNG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELNRNG", ELNRNG, "Link number out of range"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EILSEQ
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EILSEQ", EILSEQ, "Illegal byte sequence"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTDIR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTDIR", ENOTDIR, "Not a directory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTUNIQ
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTUNIQ", ENOTUNIQ, "Name not unique on network"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPERM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPERM", EPERM, "Operation not permitted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDOM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDOM", EDOM, "Math argument out of domain of func"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EXFULL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EXFULL", EXFULL, "Exchange full"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNREFUSED", ECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNREFUSED", WSAECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EISDIR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EISDIR", EISDIR, "Is a directory"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EPROTONOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPROTONOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EROFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EROFS", EROFS, "Read-only file system"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EADDRNOTAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEADDRNOTAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EIDRM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EIDRM", EIDRM, "Identifier removed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ECOMM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECOMM", ECOMM, "Communication error on send"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESRMNT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESRMNT", ESRMNT, "Srmount error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EREMOTEIO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EREMOTEIO", EREMOTEIO, "Remote I/O error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL3RST
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EL3RST", EL3RST, "Level 3 reset"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADMSG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADMSG", EBADMSG, "Not a data message"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENFILE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENFILE", ENFILE, "File table overflow"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBMAX
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESPIPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESPIPE", ESPIPE, "Illegal seek"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOLINK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOLINK", ENOLINK, "Link has been severed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENETRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETRESET", ENETRESET, "Network dropped connection because of reset"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETRESET", WSAENETRESET, "Network dropped connection because of reset"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ETIMEDOUT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETIMEDOUT", ETIMEDOUT, "Connection timed out"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAETIMEDOUT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOENT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOENT", ENOENT, "No such file or directory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EEXIST
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EEXIST", EEXIST, "File exists"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDQUOT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDQUOT", EDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEDQUOT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDQUOT", WSAEDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSTR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOSTR", ENOSTR, "Device not a stream"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADSLT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADSLT", EBADSLT, "Invalid slot"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADRQC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADRQC", EBADRQC, "Invalid request code"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBACC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELIBACC", ELIBACC, "Can not access a needed shared library"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFAULT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EFAULT", EFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEFAULT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EFAULT", WSAEFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFBIG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EFBIG", EFBIG, "File too large"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDEADLK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDEADLK", EDEADLK, "Resource deadlock would occur"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTCONN", ENOTCONN, "Transport endpoint is not connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDESTADDRREQ", EDESTADDRREQ, "Destination address required"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBSCN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELIBSCN", ELIBSCN, ".lib section in a.out corrupted"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOLCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOLCK", ENOLCK, "No record locks available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EISNAM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EISNAM", EISNAM, "Is a named type file"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ECONNABORTED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNABORTED", ECONNABORTED, "Software caused connection abort"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNABORTED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENETUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETUNREACH", ENETUNREACH, "Network is unreachable"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENETUNREACH", WSAENETUNREACH, "Network is unreachable"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ESTALE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESTALE", ESTALE, "Stale NFS file handle"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESTALE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESTALE", WSAESTALE, "Stale NFS file handle"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOSR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOSR", ENOSR, "Out of streams resources"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOMEM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOMEM", ENOMEM, "Out of memory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTSOCK", ENOTSOCK, "Socket operation on non-socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESTRPIPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESTRPIPE", ESTRPIPE, "Streams pipe error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMLINK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMLINK", EMLINK, "Too many links"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERANGE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ERANGE", ERANGE, "Math result not representable"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBEXEC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL3HLT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EL3HLT", EL3HLT, "Level 3 halted"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ECONNRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNRESET", ECONNRESET, "Connection reset by peer"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECONNRESET", WSAECONNRESET, "Connection reset by peer"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EADDRINUSE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EADDRINUSE", EADDRINUSE, "Address already in use"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEADDRINUSE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EADDRINUSE", WSAEADDRINUSE, "Address already in use"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EOPNOTSUPP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEOPNOTSUPP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EREMCHG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EREMCHG", EREMCHG, "Remote address changed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EAGAIN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EAGAIN", EAGAIN, "Try again"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENAMETOOLONG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENAMETOOLONG", ENAMETOOLONG, "File name too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENAMETOOLONG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOTTY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTTY", ENOTTY, "Not a typewriter"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERESTART
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ERESTART", ERESTART, "Interrupted system call should be restarted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ETIME
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETIME", ETIME, "Timer expired"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBFONT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBFONT", EBFONT, "Bad font file format"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EDEADLOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDEADLOCK", EDEADLOCK, "Error EDEADLOCK"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ETOOMANYREFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAETOOMANYREFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EMFILE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMFILE", EMFILE, "Too many open files"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEMFILE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMFILE", WSAEMFILE, "Too many open files"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ETXTBSY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ETXTBSY", ETXTBSY, "Text file busy"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINPROGRESS", EINPROGRESS, "Operation now in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENXIO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENXIO", ENXIO, "No such device or address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPKG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOPKG", ENOPKG, "Package not installed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSASY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSASY", WSASY, "Error WSASY"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENETDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENETDOWN", WSAENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEHOSTUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAELOOP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAELOOP", WSAELOOP, "Too many symbolic links encountered"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEMFILE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEMFILE", WSAEMFILE, "Too many open files"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAESTALE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAESTALE", WSAESTALE, "Stale NFS file handle"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAVERNOTSUPPORTED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENETUNREACH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPROCLIM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEFAULT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEFAULT", WSAEFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSANOTINITIALISED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEUSERS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEUSERS", WSAEUSERS, "Too many users"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAMAKEASYNCREPL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNABORTED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENAMETOOLONG
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOTEMPTY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEAFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAETOOMANYREFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEACCES
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEACCES", WSAEACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSATR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSATR", WSATR, "Error WSATR"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSABASEERR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSABASEERR", WSABASEERR, "Error WSABASEERR"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSADESCRIPTIO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEMSGSIZE", WSAEMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEBADF
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEBADF", WSAEBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAECONNRESET", WSAECONNRESET, "Connection reset by peer"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAGETSELECTERRO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAETIMEDOUT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOBUFS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENOBUFS", WSAENOBUFS, "No buffer space available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEDISCON
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEDISCON", WSAEDISCON, "Error WSAEDISCON"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINTR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEINTR", WSAEINTR, "Interrupted system call"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAHOS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAHOS", WSAHOS, "Error WSAHOS"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEADDRINUSE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEADDRINUSE", WSAEADDRINUSE, "Address already in use"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEADDRNOTAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEALREADY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEALREADY", WSAEALREADY, "Operation already in progress"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPROTONOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSASYSNOTREADY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEOPNOTSUPP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEISCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEISCONN", WSAEISCONN, "Transport endpoint is already connected"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEDQUOT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEDQUOT", WSAEDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOTCONN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEREMOTE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEREMOTE", WSAEREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINVAL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEINVAL", WSAEINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAGETSELECTEVEN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAGETASYNCERRO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAMAKESELECTREPL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAGETASYNCBUFLE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef WSAENETRESET
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAENETRESET", WSAENETRESET, "Network dropped connection because of reset"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAN
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("WSAN", WSAN, "Error WSAN"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #ifdef ENOMEDIUM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOMEDIUM", ENOMEDIUM, "No medium found"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMEDIUMTYPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EMEDIUMTYPE", EMEDIUMTYPE, "Wrong medium type"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECANCELED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECANCELED", ECANCELED, "Operation Canceled"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOKEY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOKEY", ENOKEY, "Required key not available"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2024-12-03 20:45:50 +08:00
										 |  |  | #ifdef EHWPOISON
 | 
					
						
							|  |  |  |     add_errcode("EHWPOISON", EHWPOISON, "Memory page has hardware error"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #ifdef EKEYEXPIRED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EKEYEXPIRED", EKEYEXPIRED, "Key has expired"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EKEYREVOKED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EKEYREVOKED", EKEYREVOKED, "Key has been revoked"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EKEYREJECTED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EKEYREJECTED", EKEYREJECTED, "Key was rejected by service"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOWNERDEAD
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EOWNERDEAD", EOWNERDEAD, "Owner died"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTRECOVERABLE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTRECOVERABLE", ENOTRECOVERABLE, "State not recoverable"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERFKILL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ERFKILL", ERFKILL, "Operation not possible due to RF-kill"); | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  |     /* Solaris-specific errnos */ | 
					
						
							|  |  |  | #ifdef ECANCELED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ECANCELED", ECANCELED, "Operation canceled"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTSUP
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTSUP", ENOTSUP, "Operation not supported"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOWNERDEAD
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EOWNERDEAD", EOWNERDEAD, "Process died with the lock"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTRECOVERABLE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTRECOVERABLE", ENOTRECOVERABLE, "Lock is not recoverable"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELOCKUNMAPPED
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ELOCKUNMAPPED", ELOCKUNMAPPED, "Locked lock was unmapped"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTACTIVE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOTACTIVE", ENOTACTIVE, "Facility is not active"); | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  |     /* MacOSX specific errnos */ | 
					
						
							|  |  |  | #ifdef EAUTH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EAUTH", EAUTH, "Authentication error"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADARCH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADARCH", EBADARCH, "Bad CPU type in executable"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADEXEC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADEXEC", EBADEXEC, "Bad executable (or shared library)"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADMACHO
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADMACHO", EBADMACHO, "Malformed Mach-o file"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADRPC
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EBADRPC", EBADRPC, "RPC struct is bad"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDEVERR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EDEVERR", EDEVERR, "Device error"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFTYPE
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EFTYPE", EFTYPE, "Inappropriate file type or format"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENEEDAUTH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENEEDAUTH", ENEEDAUTH, "Need authenticator"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOATTR
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOATTR", ENOATTR, "Attribute not found"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPOLICY
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ENOPOLICY", ENOPOLICY, "Policy not found"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROCLIM
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROCLIM", EPROCLIM, "Too many processes"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROCUNAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROCUNAVAIL", EPROCUNAVAIL, "Bad procedure for program"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROGMISMATCH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROGMISMATCH", EPROGMISMATCH, "Program version wrong"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROGUNAVAIL
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPROGUNAVAIL", EPROGUNAVAIL, "RPC prog. not avail"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPWROFF
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("EPWROFF", EPWROFF, "Device power is off"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERPCMISMATCH
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ERPCMISMATCH", ERPCMISMATCH, "RPC version wrong"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESHLIBVERS
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     add_errcode("ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch"); | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2021-08-06 23:35:13 +02:00
										 |  |  | #ifdef EQFULL
 | 
					
						
							|  |  |  |     add_errcode("EQFULL", EQFULL, "Interface output queue is full"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2022-08-16 20:20:15 +02:00
										 |  |  | #ifdef ENOTCAPABLE
 | 
					
						
							|  |  |  |     // WASI extension
 | 
					
						
							|  |  |  |     add_errcode("ENOTCAPABLE", ENOTCAPABLE, "Capabilities insufficient"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     Py_DECREF(error_dict); | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyModuleDef_Slot errno_slots[] = { | 
					
						
							|  |  |  |     {Py_mod_exec, errno_exec}, | 
					
						
							| 
									
										
										
										
											2023-05-05 15:11:27 -06:00
										 |  |  |     {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED}, | 
					
						
							| 
									
										
										
										
											2024-05-03 08:30:55 -07:00
										 |  |  |     {Py_mod_gil, Py_MOD_GIL_NOT_USED}, | 
					
						
							| 
									
										
										
										
											2020-05-07 10:17:16 +09:00
										 |  |  |     {0, NULL} | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(errno__doc__, | 
					
						
							|  |  |  | "This module makes available standard errno system symbols.\n\
 | 
					
						
							|  |  |  | \n\ | 
					
						
							|  |  |  | The value of each symbol is the corresponding integer value,\n\ | 
					
						
							|  |  |  | e.g., on most systems, errno.ENOENT equals the integer 2.\n\ | 
					
						
							|  |  |  | \n\ | 
					
						
							|  |  |  | The dictionary errno.errorcode maps numeric codes to symbol names,\n\ | 
					
						
							|  |  |  | e.g., errno.errorcode[2] could be the string 'ENOENT'.\n\ | 
					
						
							|  |  |  | \n\ | 
					
						
							|  |  |  | Symbols that are not relevant to the underlying system are not defined.\n\ | 
					
						
							|  |  |  | \n\ | 
					
						
							|  |  |  | To map error codes to error messages, use the function os.strerror(),\n\ | 
					
						
							|  |  |  | e.g. os.strerror(2) could return 'No such file or directory'."); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct PyModuleDef errnomodule = { | 
					
						
							|  |  |  |     PyModuleDef_HEAD_INIT, | 
					
						
							|  |  |  |     .m_name = "errno", | 
					
						
							|  |  |  |     .m_doc = errno__doc__, | 
					
						
							|  |  |  |     .m_size = 0, | 
					
						
							|  |  |  |     .m_methods = errno_methods, | 
					
						
							|  |  |  |     .m_slots = errno_slots, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyMODINIT_FUNC | 
					
						
							|  |  |  | PyInit_errno(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return PyModuleDef_Init(&errnomodule); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | } |