[Python-checkins] cpython: whatsnew: os.open O_PATH and O_TMPFILE.

r.david.murray python-checkins at python.org
Mon Mar 10 23:11:43 CET 2014


http://hg.python.org/cpython/rev/6c1af13faa11
changeset: 89573:6c1af13faa11
user: R David Murray <rdmurray at bitdance.com>
date: Mon Mar 10 15:48:22 2014 -0400
summary:
 whatsnew: os.open O_PATH and O_TMPFILE.
files:
 Doc/library/os.rst | 5 +++--
 Doc/whatsnew/3.4.rst | 9 +++++----
 2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -940,8 +940,9 @@
 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
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1129,10 +1129,11 @@
 :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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /