From 4244db4dd8365211996cd497fbe983b9158f4d20 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Tue, 2 Feb 2021 20:12:56 +0100 Subject: [PATCH 1/3] bpo-42971: Add errno.EQFULL (macOS) --- Doc/library/errno.rst | 3 +++ .../next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst | 2 ++ Modules/errnomodule.c | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst diff --git a/Doc/library/errno.rst b/Doc/library/errno.rst index 1cbd51c582c0cf..9acfc1e22df42a 100644 --- a/Doc/library/errno.rst +++ b/Doc/library/errno.rst @@ -637,3 +637,6 @@ defined by the module. The specific list of defined symbols is available as Quota exceeded +.. data:: EQFULL + + Interface output queue is full 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 00000000000000..97c8d2d79aa404 --- /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 d99bed45bd6a23..bf6766e02349c0 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; From 3d91ad9734c08b54a927b232df6357b6c94479e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Fri, 6 Aug 2021 23:03:08 +0200 Subject: [PATCH 2/3] Add "versionadded:: 3.11" --- Doc/library/errno.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/errno.rst b/Doc/library/errno.rst index 9acfc1e22df42a..f48c2f3858bba7 100644 --- a/Doc/library/errno.rst +++ b/Doc/library/errno.rst @@ -640,3 +640,5 @@ defined by the module. The specific list of defined symbols is available as .. data:: EQFULL Interface output queue is full + + .. versionadded:: 3.11 From 293dcd6d27cac7b05a5c05225519c112dd70c5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Fri, 6 Aug 2021 23:13:54 +0200 Subject: [PATCH 3/3] whiiitespaaace --- Doc/library/errno.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/errno.rst b/Doc/library/errno.rst index f48c2f3858bba7..93bdb6ca9b8e3c 100644 --- a/Doc/library/errno.rst +++ b/Doc/library/errno.rst @@ -640,5 +640,5 @@ defined by the module. The specific list of defined symbols is available as .. data:: EQFULL Interface output queue is full - + .. versionadded:: 3.11