Commit 600941e2 authored by Christian Heimes's avatar Christian Heimes

Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel

3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
parent 1b019bd8
...@@ -919,6 +919,7 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window ...@@ -919,6 +919,7 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
O_NOFOLLOW O_NOFOLLOW
O_NOATIME O_NOATIME
O_PATH O_PATH
O_TMPFILE
These constants are GNU extensions and not present if they are not defined by These constants are GNU extensions and not present if they are not defined by
the C library. the C library.
......
...@@ -28,6 +28,9 @@ Core and Builtins ...@@ -28,6 +28,9 @@ Core and Builtins
Library Library
------- -------
- Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel
3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
- Issue #18532: Change the builtin hash algorithms' names to lower case names - Issue #18532: Change the builtin hash algorithms' names to lower case names
as promised by hashlib's documentation. as promised by hashlib's documentation.
......
...@@ -11245,6 +11245,9 @@ all_ins(PyObject *m) ...@@ -11245,6 +11245,9 @@ all_ins(PyObject *m)
#ifdef O_TTY_INIT #ifdef O_TTY_INIT
if (PyModule_AddIntMacro(m, O_TTY_INIT)) return -1; if (PyModule_AddIntMacro(m, O_TTY_INIT)) return -1;
#endif #endif
#ifdef O_TMPFILE
if (PyModule_AddIntMacro(m, O_TMPFILE)) return -1;
#endif
#ifdef PRIO_PROCESS #ifdef PRIO_PROCESS
if (PyModule_AddIntMacro(m, PRIO_PROCESS)) return -1; if (PyModule_AddIntMacro(m, PRIO_PROCESS)) return -1;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment