bpo-42971: Add errno.EQFULL (macOS) (GH-24419)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
Ronald Oussoren 2021-08-06 23:35:13 +02:00 committed by GitHub
parent e9a6f1b78b
commit 17c2316794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -637,3 +637,8 @@ defined by the module. The specific list of defined symbols is available as
Quota exceeded Quota exceeded
.. data:: EQFULL
Interface output queue is full
.. versionadded:: 3.11

View File

@ -0,0 +1,2 @@
Add definition of ``errno.EQFULL`` for platforms that define this constant
(such as macOS).

View File

@ -920,6 +920,9 @@ errno_exec(PyObject *module)
#ifdef ESHLIBVERS #ifdef ESHLIBVERS
add_errcode("ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch"); add_errcode("ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch");
#endif #endif
#ifdef EQFULL
add_errcode("EQFULL", EQFULL, "Interface output queue is full");
#endif
Py_DECREF(error_dict); Py_DECREF(error_dict);
return 0; return 0;