mirror of https://github.com/python/cpython
whatsnew: os.open O_PATH and O_TMPFILE.
This commit is contained in:
parent
a69bb5cc48
commit
8df4ec70d3
|
@ -940,8 +940,9 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
|
||||||
the C library.
|
the C library.
|
||||||
|
|
||||||
.. versionchanged:: 3.4
|
.. versionchanged:: 3.4
|
||||||
Add :data:`O_TMPFILE` constant. It's only available on Linux Kernel 3.11
|
Add :data:`O_PATH` on systems that support it.
|
||||||
or newer.
|
Add :data:`O_TMPFILE`, only available on Linux Kernel 3.11
|
||||||
|
or newer.
|
||||||
|
|
||||||
|
|
||||||
.. function:: openpty()
|
.. function:: openpty()
|
||||||
|
|
|
@ -1129,10 +1129,11 @@ Windows). (Contributed by Brian Curtin in :issue:`11939`.)
|
||||||
:func:`os.path.ismount` now recognizes volumes mounted below a drive
|
:func:`os.path.ismount` now recognizes volumes mounted below a drive
|
||||||
root on Windows. (Contributed by Tim Golden in :issue:`9035`.)
|
root on Windows. (Contributed by Tim Golden in :issue:`9035`.)
|
||||||
|
|
||||||
:func:`os.open` supports a new flag, :data:`~os.O_TMPFILE` (unnamed temporary
|
:func:`os.open` supports two new flags on platforms that provide them,
|
||||||
file) on platforms that provide it (as of 3.4.0 release, that means Linux
|
:data:`~os.O_TMPFILE` (unnamed temporary file, as of 3.4.0 release available
|
||||||
systems with a kernel version of 3.11 or newer that have uapi headers).
|
only on Linux systems with a kernel version of 3.11 or newer that have uapi
|
||||||
(Contributed by Christian Heimes in :issue:`18673`.)
|
headers), and :data:`~os.O_PATH` (un-opened file descriptor). (Contributed by
|
||||||
|
Christian Heimes in :issue:`18673` and Benjamin Peterson, respectively.)
|
||||||
|
|
||||||
|
|
||||||
pdb
|
pdb
|
||||||
|
|
Loading…
Reference in New Issue