]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42971: Add errno.EQFULL (macOS) (GH-24419)
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 6 Aug 2021 21:35:13 +0000 (23:35 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 21:35:13 +0000 (23:35 +0200)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Doc/library/errno.rst
Misc/NEWS.d/next/Library/2021-02-02-20-11-14.bpo-42971.OpVoFu.rst [new file with mode: 0644]
Modules/errnomodule.c

index 1cbd51c582c0cf0340a989e34fb0c4cbec9bd77e..93bdb6ca9b8e3c5320ed5355376444fa170dd181 100644 (file)
@@ -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 (file)
index 0000000..97c8d2d
--- /dev/null
@@ -0,0 +1,2 @@
+Add definition of ``errno.EQFULL`` for platforms that define this constant
+(such as macOS).
index d99bed45bd6a23987fc8d0c6ed9ca021be9dbb75..bf6766e02349c0037beb4db84c3ab5a02da20735 100644 (file)
@@ -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;