mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)
This commit is contained in:
parent
d4e6ed7e5f
commit
f917c243c5
4 changed files with 28 additions and 1 deletions
|
@ -14901,7 +14901,15 @@ all_ins(PyObject *m)
|
|||
#ifdef O_ACCMODE
|
||||
if (PyModule_AddIntMacro(m, O_ACCMODE)) return -1;
|
||||
#endif
|
||||
|
||||
#ifdef O_EVTONLY
|
||||
if (PyModule_AddIntMacro(m, O_EVTONLY)) return -1;
|
||||
#endif
|
||||
#ifdef O_FSYNC
|
||||
if (PyModule_AddIntMacro(m, O_FSYNC)) return -1;
|
||||
#endif
|
||||
#ifdef O_SYMLINK
|
||||
if (PyModule_AddIntMacro(m, O_SYMLINK)) return -1;
|
||||
#endif
|
||||
|
||||
#ifdef SEEK_HOLE
|
||||
if (PyModule_AddIntMacro(m, SEEK_HOLE)) return -1;
|
||||
|
@ -14951,6 +14959,9 @@ all_ins(PyObject *m)
|
|||
/* Do not follow links. */
|
||||
if (PyModule_AddIntMacro(m, O_NOFOLLOW)) return -1;
|
||||
#endif
|
||||
#ifdef O_NOFOLLOW_ANY
|
||||
if (PyModule_AddIntMacro(m, O_NOFOLLOW_ANY)) return -1;
|
||||
#endif
|
||||
#ifdef O_NOLINKS
|
||||
/* Fails if link count of the named file is greater than 1 */
|
||||
if (PyModule_AddIntMacro(m, O_NOLINKS)) return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue