summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2021-12-08 22:28:51 (GMT)
committerGitHub <noreply@github.com>2021-12-08 22:28:51 (GMT)
commit267539bff700c2493778c07eeb1642b9584c4826 (patch)
tree7a49e35fa40ee5b332c2cd5abaabf0bd4328db1a /Doc
parent2109f7880b65755329a877da3a7f8a362de07350 (diff)
downloadcpython-267539bff700c2493778c07eeb1642b9584c4826.zip
cpython-267539bff700c2493778c07eeb1642b9584c4826.tar.gz
cpython-267539bff700c2493778c07eeb1642b9584c4826.tar.bz2
bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/fcntl.rst5
-rw-r--r--Doc/whatsnew/3.11.rst8
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
index 9d80211..846c8d7 100644
--- a/Doc/library/fcntl.rst
+++ b/Doc/library/fcntl.rst
@@ -44,6 +44,11 @@ descriptor.
``F_SETPIPE_SZ`` constants, which allow to check and modify a pipe's size
respectively.
+.. versionchanged:: 3.11
+ On FreeBSD, the fcntl module exposes the ``F_DUP2FD`` and ``F_DUP2FD_CLOEXEC``
+ constants, which allow to duplicate a file descriptor, the latter setting
+ ``FD_CLOEXEC`` flag in addition.
+
The module defines the following functions:
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index a570864..264a801 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -329,6 +329,14 @@ unicodedata
* The Unicode database has been updated to version 14.0.0. (:issue:`45190`).
+fcntl
+-----
+
+* On FreeBSD, the `F_DUP2FD` and `F_DUP2FD_CLOEXEC` flags respectively
+ are supported, the former equals to ``dup2`` usage while the latter set
+ the ``FD_CLOEXEC`` flag in addition.
+
+
Optimizations
=============