diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2021-08-06 21:35:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 21:35:13 (GMT) |
commit | 17c23167942498296f0bdfffe52e72d53d66d693 (patch) | |
tree | bb91b9f67a173af81eea460620f1fe278f1092a8 | |
parent | e9a6f1b78bf57d9f3f99547bd007d7cfc9724cfb (diff) | |
download | cpython-17c23167942498296f0bdfffe52e72d53d66d693.zip cpython-17c23167942498296f0bdfffe52e72d53d66d693.tar.gz cpython-17c23167942498296f0bdfffe52e72d53d66d693.tar.bz2 |
bpo-42971: Add errno.EQFULL (macOS) (GH-24419)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
-rw-r--r-- | Doc/library/errno.rst | 5 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst | 2 | ||||
-rw-r--r-- | Modules/errnomodule.c | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/errno.rst b/Doc/library/errno.rst index 1cbd51c..93bdb6c 100644 --- a/Doc/library/errno.rst +++ b/Doc/library/errno.rst @@ -637,3 +637,8 @@ defined by the module. The specific list of defined symbols is available as Quota exceeded +.. data:: EQFULL + + Interface output queue is full + + .. versionadded:: 3.11 diff --git a/Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst b/Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst new file mode 100644 index 0000000..97c8d2d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst @@ -0,0 +1,2 @@ +Add definition of ``errno.EQFULL`` for platforms that define this constant +(such as macOS). diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c index d99bed4..bf6766e 100644 --- a/Modules/errnomodule.c +++ b/Modules/errnomodule.c @@ -920,6 +920,9 @@ errno_exec(PyObject *module) #ifdef ESHLIBVERS add_errcode("ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch"); #endif +#ifdef EQFULL + add_errcode("EQFULL", EQFULL, "Interface output queue is full"); +#endif Py_DECREF(error_dict); return 0; |