summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPablo Galindo <pablogsal@gmail.com>2021-12-08 23:41:16 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2021-12-08 23:41:16 (GMT)
commit9fe0de28bcc8d6b4077d9c3994648049730ee721 (patch)
tree9ed7d946d4c4c4816d5b13d0c706555a1bd5d790 /Doc
parent23d52fc8c143ed77ae83808dee5065cf715ef552 (diff)
parent267539bff700c2493778c07eeb1642b9584c4826 (diff)
downloadcpython-9fe0de28bcc8d6b4077d9c3994648049730ee721.zip
cpython-9fe0de28bcc8d6b4077d9c3994648049730ee721.tar.gz
cpython-9fe0de28bcc8d6b4077d9c3994648049730ee721.tar.bz2
Merge remote-tracking branch 'upstream/main'
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
=============