| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* Errno module */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "Python.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-26 17:58:02 +00:00
										 |  |  | /* Windows socket errors (WSA*)  */ | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef MS_WINDOWS
 | 
					
						
							| 
									
										
										
										
											2008-01-04 13:33:00 +00:00
										 |  |  | #define WIN32_LEAN_AND_MEAN
 | 
					
						
							| 
									
										
										
										
											2008-06-13 01:09:34 +00:00
										 |  |  | #include <windows.h>
 | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  | /* 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
										 |  |  | 
 | 
					
						
							|  |  |  | static void | 
					
						
							| 
									
										
										
										
											2007-08-24 00:10:00 +00:00
										 |  |  | _inscode(PyObject *d, PyObject *de, const char *name, int code) | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     PyObject *u = PyUnicode_FromString(name); | 
					
						
							|  |  |  |     PyObject *v = PyLong_FromLong((long) code); | 
					
						
							| 
									
										
										
										
											2000-09-01 09:01:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     /* Don't bother checking for errors; they'll be caught at the end
 | 
					
						
							|  |  |  |      * of the module initialization function by the caller of | 
					
						
							|  |  |  |      * initerrno(). | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     if (u && v) { | 
					
						
							|  |  |  |         /* insert in modules dict */ | 
					
						
							|  |  |  |         PyDict_SetItem(d, u, v); | 
					
						
							|  |  |  |         /* insert in errorcode dict */ | 
					
						
							|  |  |  |         PyDict_SetItem(de, v, u); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     Py_XDECREF(u); | 
					
						
							|  |  |  |     Py_XDECREF(v); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-06-13 20:33:02 +00:00
										 |  |  | PyDoc_STRVAR(errno__doc__, | 
					
						
							| 
									
										
										
										
											1998-08-11 17:50:22 +00:00
										 |  |  | "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\ | 
					
						
							| 
									
										
										
										
											2002-06-13 20:33:02 +00:00
										 |  |  | e.g. os.strerror(2) could return 'No such file or directory'."); | 
					
						
							| 
									
										
										
										
											1998-08-11 17:50:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-11 05:26:20 +00:00
										 |  |  | static struct PyModuleDef errnomodule = { | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     PyModuleDef_HEAD_INIT, | 
					
						
							|  |  |  |     "errno", | 
					
						
							|  |  |  |     errno__doc__, | 
					
						
							|  |  |  |     -1, | 
					
						
							|  |  |  |     errno_methods, | 
					
						
							|  |  |  |     NULL, | 
					
						
							|  |  |  |     NULL, | 
					
						
							|  |  |  |     NULL, | 
					
						
							|  |  |  |     NULL | 
					
						
							| 
									
										
										
										
											2008-06-11 05:26:20 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-08-02 02:27:13 +00:00
										 |  |  | PyMODINIT_FUNC | 
					
						
							| 
									
										
										
										
											2008-06-11 05:26:20 +00:00
										 |  |  | PyInit_errno(void) | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     PyObject *m, *d, *de; | 
					
						
							|  |  |  |     m = PyModule_Create(&errnomodule); | 
					
						
							|  |  |  |     if (m == NULL) | 
					
						
							|  |  |  |         return NULL; | 
					
						
							|  |  |  |     d = PyModule_GetDict(m); | 
					
						
							|  |  |  |     de = PyDict_New(); | 
					
						
							|  |  |  |     if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) | 
					
						
							|  |  |  |         return NULL; | 
					
						
							| 
									
										
										
										
											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... */ | 
					
						
							|  |  |  | #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOCSI
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEHOSTUNREACH
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOMSG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOMSG", ENOMSG, "No message of desired type"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EUCLEAN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EUCLEAN", EUCLEAN, "Structure needs cleaning"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL2NSYNC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EL2NSYNC", EL2NSYNC, "Level 2 not synchronized"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL2HLT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EL2HLT", EL2HLT, "Level 2 halted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENODATA
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENODATA", ENODATA, "No data available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTBLK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTBLK", ENOTBLK, "Block device required"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSYS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOSYS", ENOSYS, "Function not implemented"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPIPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPIPE", EPIPE, "Broken pipe"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINVAL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EINVAL", EINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINVAL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EINVAL", WSAEINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOVERFLOW
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EOVERFLOW", EOVERFLOW, "Value too large for defined data type"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EADV
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EADV", EADV, "Advertise error"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINTR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EINTR", EINTR, "Interrupted system call"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINTR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EUSERS", EUSERS, "Too many users"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEUSERS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTEMPTY", ENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTEMPTY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOBUFS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOBUFS", ENOBUFS, "No buffer space available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOBUFS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPROTO", EPROTO, "Protocol error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EREMOTE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EREMOTE", EREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEREMOTE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EREMOTE", WSAEREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENAVAIL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENAVAIL", ENAVAIL, "No XENIX semaphores available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECHILD
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECHILD", ECHILD, "No child processes"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ELOOP
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELOOP", ELOOP, "Too many symbolic links encountered"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAELOOP
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EXDEV", EXDEV, "Cross-device link"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef E2BIG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "E2BIG", E2BIG, "Arg list too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESRCH
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESRCH", ESRCH, "No such process"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EMSGSIZE", EMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EMSGSIZE", WSAEMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EAFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEAFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADR", EBADR, "Invalid request descriptor"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EHOSTDOWN", EHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EHOSTDOWN", WSAEHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOPROTOOPT", ENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBUSY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EWOULDBLOCK", EWOULDBLOCK, "Operation would block"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADFD", EBADFD, "File descriptor in bad state"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDOTDOT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDOTDOT", EDOTDOT, "RFS specific error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EISCONN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EISCONN", EISCONN, "Transport endpoint is already connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEISCONN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EISCONN", WSAEISCONN, "Transport endpoint is already connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOANO
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOANO", ENOANO, "No anode"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECHRNG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECHRNG", ECHRNG, "Channel number out of range"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBBAD
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELIBBAD", ELIBBAD, "Accessing a corrupted shared library"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENONET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENONET", ENONET, "Machine is not on the network"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADE", EBADE, "Invalid exchange"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADF
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADF", EBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEBADF
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADF", WSAEBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMULTIHOP
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EMULTIHOP", EMULTIHOP, "Multihop attempted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EIO
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EIO", EIO, "I/O error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EUNATCH
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EUNATCH", EUNATCH, "Protocol driver not attached"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSPC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOSPC", ENOSPC, "No space left on device"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOEXEC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOEXEC", ENOEXEC, "Exec format error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EALREADY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EALREADY", EALREADY, "Operation already in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEALREADY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EALREADY", WSAEALREADY, "Operation already in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENETDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENETDOWN", ENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENETDOWN", WSAENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTNAM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTNAM", ENOTNAM, "Not a XENIX named type file"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EACCES
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EACCES", EACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEACCES
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EACCES", WSAEACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELNRNG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELNRNG", ELNRNG, "Link number out of range"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EILSEQ
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EILSEQ", EILSEQ, "Illegal byte sequence"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTDIR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTDIR", ENOTDIR, "Not a directory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTUNIQ
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTUNIQ", ENOTUNIQ, "Name not unique on network"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPERM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPERM", EPERM, "Operation not permitted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDOM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDOM", EDOM, "Math argument out of domain of func"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EXFULL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EXFULL", EXFULL, "Exchange full"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECONNREFUSED", ECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECONNREFUSED", WSAECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EISDIR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EISDIR", EISDIR, "Is a directory"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EPROTONOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEPROTONOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEADDRNOTAVAIL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EIDRM", EIDRM, "Identifier removed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ECOMM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECOMM", ECOMM, "Communication error on send"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESRMNT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESRMNT", ESRMNT, "Srmount error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EREMOTEIO
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EREMOTEIO", EREMOTEIO, "Remote I/O error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL3RST
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EL3RST", EL3RST, "Level 3 reset"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADMSG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADMSG", EBADMSG, "Not a data message"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENFILE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENFILE", ENFILE, "File table overflow"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBMAX
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESPIPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESPIPE", ESPIPE, "Illegal seek"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENOLINK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENETRESET", ENETRESET, "Network dropped connection because of reset"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETRESET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ETIMEDOUT", ETIMEDOUT, "Connection timed out"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAETIMEDOUT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOENT", ENOENT, "No such file or directory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EEXIST
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EEXIST", EEXIST, "File exists"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDQUOT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDQUOT", EDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEDQUOT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDQUOT", WSAEDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOSTR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOSTR", ENOSTR, "Device not a stream"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADSLT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADSLT", EBADSLT, "Invalid slot"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADRQC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EBADRQC", EBADRQC, "Invalid request code"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBACC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELIBACC", ELIBACC, "Can not access a needed shared library"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFAULT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EFAULT", EFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEFAULT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EFAULT", WSAEFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFBIG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EFBIG", EFBIG, "File too large"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDEADLK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDEADLK", EDEADLK, "Resource deadlock would occur"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTCONN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTCONN", ENOTCONN, "Transport endpoint is not connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTCONN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDESTADDRREQ", EDESTADDRREQ, "Destination address required"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELIBSCN", ELIBSCN, ".lib section in a.out corrupted"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOLCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECONNABORTED", ECONNABORTED, "Software caused connection abort"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNABORTED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENETUNREACH", ENETUNREACH, "Network is unreachable"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENETUNREACH
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESTALE", ESTALE, "Stale NFS file handle"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESTALE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOSR", ENOSR, "Out of streams resources"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOMEM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOMEM", ENOMEM, "Out of memory"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTSOCK", ENOTSOCK, "Socket operation on non-socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESTRPIPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESTRPIPE", ESTRPIPE, "Streams pipe error"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMLINK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EMLINK", EMLINK, "Too many links"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERANGE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ERANGE", ERANGE, "Math result not representable"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELIBEXEC
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EL3HLT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EL3HLT", EL3HLT, "Level 3 halted"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ECONNRESET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ECONNRESET", ECONNRESET, "Connection reset by peer"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAECONNRESET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EADDRINUSE", EADDRINUSE, "Address already in use"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEADDRINUSE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEOPNOTSUPP
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EREMCHG", EREMCHG, "Remote address changed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef EAGAIN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EAGAIN", EAGAIN, "Try again"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ENAMETOOLONG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENAMETOOLONG", ENAMETOOLONG, "File name too long"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAENAMETOOLONG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOTTY", ENOTTY, "Not a typewriter"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERESTART
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ERESTART", ERESTART, "Interrupted system call should be restarted"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ETIME", ETIME, "Timer expired"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBFONT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EDEADLOCK", EDEADLOCK, "Error EDEADLOCK"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef ETOOMANYREFS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAETOOMANYREFS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EMFILE", EMFILE, "Too many open files"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEMFILE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ETXTBSY", ETXTBSY, "Text file busy"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EINPROGRESS", EINPROGRESS, "Operation now in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #ifdef WSAEINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "EINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENXIO
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENXIO", ENXIO, "No such device or address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPKG
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "ENOPKG", ENOPKG, "Package not installed"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSASY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSASY", WSASY, "Error WSASY"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEHOSTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENETDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAENETDOWN", WSAENETDOWN, "Network is down"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOTSOCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENETUNREACH
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPROCLIM
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEFAULT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEFAULT", WSAEFAULT, "Bad address"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSANOTINITIALISED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEUSERS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEUSERS", WSAEUSERS, "Too many users"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAMAKEASYNCREPL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOPROTOOPT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNABORTED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAESHUTDOWN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEACCES", WSAEACCES, "Permission denied"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSATR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSATR", WSATR, "Error WSATR"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSABASEERR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSABASEERR", WSABASEERR, "Error WSABASEERR"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSADESCRIPTIO
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEMSGSIZE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEMSGSIZE", WSAEMSGSIZE, "Message too long"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEBADF
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEBADF", WSAEBADF, "Bad file number"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNRESET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAETIMEDOUT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOBUFS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEDISCON", WSAEDISCON, "Error WSAEDISCON"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINTR
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEINTR", WSAEINTR, "Interrupted system call"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPROTOTYPE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAHOS", WSAHOS, "Error WSAHOS"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEADDRINUSE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSASYSNOTREADY
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEWOULDBLOCK
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEPFNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEDQUOT", WSAEDQUOT, "Quota exceeded"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAENOTCONN
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEREMOTE", WSAEREMOTE, "Object is remote"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINVAL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEINVAL", WSAEINVAL, "Invalid argument"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEINPROGRESS
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAESOCKTNOSUPPORT
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAMAKESELECTREPL
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAGETASYNCBUFLE
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAEDESTADDRREQ
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #ifdef WSAECONNREFUSED
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef WSAENETRESET
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "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
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     inscode(d, ds, de, "WSAN", WSAN, "Error WSAN"); | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2010-09-22 20:58:04 +00:00
										 |  |  | #ifdef ENOMEDIUM
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOMEDIUM", ENOMEDIUM, "No medium found"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EMEDIUMTYPE
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EMEDIUMTYPE", EMEDIUMTYPE, "Wrong medium type"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ECANCELED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation Canceled"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOKEY
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOKEY", ENOKEY, "Required key not available"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EKEYEXPIRED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EKEYEXPIRED", EKEYEXPIRED, "Key has expired"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EKEYREVOKED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EKEYREVOKED", EKEYREVOKED, "Key has been revoked"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EKEYREJECTED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EKEYREJECTED", EKEYREJECTED, "Key was rejected by service"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOWNERDEAD
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Owner died"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTRECOVERABLE
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "State not recoverable"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERFKILL
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ERFKILL", ERFKILL, "Operation not possible due to RF-kill"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											1997-09-28 05:41:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-18 21:05:19 +00:00
										 |  |  |     /* Solaris-specific errnos */ | 
					
						
							|  |  |  | #ifdef ECANCELED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation canceled"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTSUP
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EOWNERDEAD
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Process died with the lock"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTRECOVERABLE
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "Lock is not recoverable"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ELOCKUNMAPPED
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ELOCKUNMAPPED", ELOCKUNMAPPED, "Locked lock was unmapped"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOTACTIVE
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOTACTIVE", ENOTACTIVE, "Facility is not active"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-07 09:59:03 +02:00
										 |  |  |     /* MacOSX specific errnos */ | 
					
						
							|  |  |  | #ifdef EAUTH
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EAUTH", EAUTH, "Authentication error"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADARCH
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EBADARCH", EBADARCH, "Bad CPU type in executable"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADEXEC
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EBADEXEC", EBADEXEC, "Bad executable (or shared library)"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADMACHO
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EBADMACHO", EBADMACHO, "Malformed Mach-o file"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EBADRPC
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EBADRPC", EBADRPC, "RPC struct is bad"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EDEVERR
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EDEVERR", EDEVERR, "Device error"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EFTYPE
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EFTYPE", EFTYPE, "Inappropriate file type or format"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENEEDAUTH
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENEEDAUTH", ENEEDAUTH, "Need authenticator"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOATTR
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOATTR", ENOATTR, "Attribute not found"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ENOPOLICY
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ENOPOLICY", ENOPOLICY, "Policy not found"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROCLIM
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EPROCLIM", EPROCLIM, "Too many processes"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROCUNAVAIL
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EPROCUNAVAIL", EPROCUNAVAIL, "Bad procedure for program"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROGMISMATCH
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EPROGMISMATCH", EPROGMISMATCH, "Program version wrong"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPROGUNAVAIL
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EPROGUNAVAIL", EPROGUNAVAIL, "RPC prog. not avail"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef EPWROFF
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "EPWROFF", EPWROFF, "Device power is off"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ERPCMISMATCH
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ERPCMISMATCH", ERPCMISMATCH, "RPC version wrong"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef ESHLIBVERS
 | 
					
						
							|  |  |  |     inscode(d, ds, de, "ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch"); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-09 15:52:27 +00:00
										 |  |  |     Py_DECREF(de); | 
					
						
							|  |  |  |     return m; | 
					
						
							| 
									
										
										
										
											1996-07-24 00:51:51 +00:00
										 |  |  | } |