mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
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.
This commit is contained in:
parent
0db895e752
commit
177b3f9982
3 changed files with 7 additions and 0 deletions
|
@ -11245,6 +11245,9 @@ all_ins(PyObject *m)
|
|||
#ifdef O_TTY_INIT
|
||||
if (PyModule_AddIntMacro(m, O_TTY_INIT)) return -1;
|
||||
#endif
|
||||
#ifdef O_TMPFILE
|
||||
if (PyModule_AddIntMacro(m, O_TMPFILE)) return -1;
|
||||
#endif
|
||||
#ifdef PRIO_PROCESS
|
||||
if (PyModule_AddIntMacro(m, PRIO_PROCESS)) return -1;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue