summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-05 10:24:52 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-05 10:24:52 (GMT)
commitccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2 (patch)
treef8838613ab10770be53535fc31ec30bc72fb5771 /Doc/library/os.rst
parent9aa78566fbeeb8cdaa669ad22f92cf63765f4135 (diff)
downloadcpython-ccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2.zip
cpython-ccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2.tar.gz
cpython-ccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2.tar.bz2
bpo-26836: Document os.memfd_create() name parameter (GH-13838)
https://bugs.python.org/issue26836
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 107764b..f0df35e9 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3011,6 +3011,13 @@ features:
(or a bitwise ORed combination of them). By default, the new file
descriptor is :ref:`non-inheritable <fd_inheritance>`.
+ The name supplied in *name* is used as a filename and will be displayed as
+ the target of the corresponding symbolic link in the directory
+ ``/proc/self/fd/``. The displayed name is always prefixed with ``memfd:``
+ and serves only for debugging purposes. Names do not affect the behavior of
+ the file descriptor, and as such multiple files can have the same name
+ without any side effects.
+
.. availability:: Linux 3.17 or newer with glibc 2.27 or newer.
.. versionadded:: 3.8