summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-03-10 19:48:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-03-10 19:48:22 (GMT)
commit8df4ec70d3b5dacea4e6ee011c3d757261ef1969 (patch)
tree7d4a9a5de29dd3aeb874e5367233df44c23408d4
parenta69bb5cc48f71df757c4b43aae6f1e4fe7dab64e (diff)
downloadcpython-8df4ec70d3b5dacea4e6ee011c3d757261ef1969.zip
cpython-8df4ec70d3b5dacea4e6ee011c3d757261ef1969.tar.gz
cpython-8df4ec70d3b5dacea4e6ee011c3d757261ef1969.tar.bz2
whatsnew: os.open O_PATH and O_TMPFILE.
-rw-r--r--Doc/library/os.rst5
-rw-r--r--Doc/whatsnew/3.4.rst9
2 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index b98ad80..7ae303b 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -940,8 +940,9 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
the C library.
.. versionchanged:: 3.4
- Add :data:`O_TMPFILE` constant. It's only available on Linux Kernel 3.11
- or newer.
+ Add :data:`O_PATH` on systems that support it.
+ Add :data:`O_TMPFILE`, only available on Linux Kernel 3.11
+ or newer.
.. function:: openpty()
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 34607b8..e5e720e 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1129,10 +1129,11 @@ Windows). (Contributed by Brian Curtin in :issue:`11939`.)
:func:`os.path.ismount` now recognizes volumes mounted below a drive
root on Windows. (Contributed by Tim Golden in :issue:`9035`.)
-:func:`os.open` supports a new flag, :data:`~os.O_TMPFILE` (unnamed temporary
-file) on platforms that provide it (as of 3.4.0 release, that means Linux
-systems with a kernel version of 3.11 or newer that have uapi headers).
-(Contributed by Christian Heimes in :issue:`18673`.)
+:func:`os.open` supports two new flags on platforms that provide them,
+:data:`~os.O_TMPFILE` (unnamed temporary file, as of 3.4.0 release available
+only on Linux systems with a kernel version of 3.11 or newer that have uapi
+headers), and :data:`~os.O_PATH` (un-opened file descriptor). (Contributed by
+Christian Heimes in :issue:`18673` and Benjamin Peterson, respectively.)
pdb