]> granicus.if.org Git - python/commitdiff
bpo-26836: Document os.memfd_create() name parameter (GH-13838)
authorVictor Stinner <vstinner@redhat.com>
Wed, 5 Jun 2019 10:24:52 +0000 (12:24 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Jun 2019 10:24:52 +0000 (03:24 -0700)
https://bugs.python.org/issue26836

Doc/library/os.rst

index 107764ba4d539e8d7af420610d073e41ff34f4be..f0df35e9ddd5400b247663cb6ea00c3d504fc9d3 100644 (file)
@@ -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