diff options
author | Dong-hee Na <donghee.na@python.org> | 2021-02-03 23:32:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 23:32:55 (GMT) |
commit | f917c243c52d62a787738379fb9b97acbed02c17 (patch) | |
tree | 4516bfbadf11f83ce17637aac219fb7fdf1ff8ac /Modules | |
parent | d4e6ed7e5fb43320ea714d7436bc11667c624d43 (diff) | |
download | cpython-f917c243c52d62a787738379fb9b97acbed02c17.zip cpython-f917c243c52d62a787738379fb9b97acbed02c17.tar.gz cpython-f917c243c52d62a787738379fb9b97acbed02c17.tar.bz2 |
bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 4468fd0..b30ae80 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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; |