D | errnomodule.c | 22 _inscode(PyObject *d, PyObject *de, char *name, int code) in _inscode() argument 35 PyDict_SetItem(de, v, u); in _inscode() 58 PyObject *m, *d, *de; in initerrno() local 63 de = PyDict_New(); in initerrno() 64 if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) in initerrno() 68 #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) in initerrno() argument 76 inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); in initerrno() 79 inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); in initerrno() 82 inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); in initerrno() 85 inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); in initerrno() [all …]
|