Lines Matching refs:myerrno
592 PyObject *myerrno = NULL, *strerror = NULL, *filename = NULL; in EnvironmentError_init() local
603 &myerrno, &strerror, &filename)) { in EnvironmentError_init()
606 Py_INCREF(myerrno); in EnvironmentError_init()
607 Py_XSETREF(self->myerrno, myerrno); in EnvironmentError_init()
629 Py_CLEAR(self->myerrno); in EnvironmentError_clear()
647 Py_VISIT(self->myerrno); in EnvironmentError_traverse()
679 if (self->myerrno) { in EnvironmentError_str()
680 Py_INCREF(self->myerrno); in EnvironmentError_str()
681 PyTuple_SET_ITEM(tuple, 0, self->myerrno); in EnvironmentError_str()
703 else if (self->myerrno && self->strerror) { in EnvironmentError_str()
717 if (self->myerrno) { in EnvironmentError_str()
718 Py_INCREF(self->myerrno); in EnvironmentError_str()
719 PyTuple_SET_ITEM(tuple, 0, self->myerrno); in EnvironmentError_str()
746 {"errno", T_OBJECT, offsetof(PyEnvironmentErrorObject, myerrno), 0,
826 Py_CLEAR(self->myerrno); in WindowsError_clear()
844 Py_VISIT(self->myerrno); in WindowsError_traverse()
862 if (self->myerrno == NULL) in WindowsError_init()
867 errcode = PyInt_AsLong(self->myerrno); in WindowsError_init()
872 Py_XSETREF(self->winerror, self->myerrno); in WindowsError_init()
878 self->myerrno = o_errcode; in WindowsError_init()
977 {"errno", T_OBJECT, offsetof(PyWindowsErrorObject, myerrno), 0,