diff options
author | Charles-François Natali <neologix@free.fr> | 2011-05-22 18:42:32 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-05-22 18:42:32 (GMT) |
commit | 1e045b183104df770e232e756986bf301c87e9ce (patch) | |
tree | c32a523ffd41a155df1e3f2e8be2860970617ab0 /Modules | |
parent | f738d33e5d5cfa19938003af4a57f91b5e5e277b (diff) | |
download | cpython-1e045b183104df770e232e756986bf301c87e9ce.zip cpython-1e045b183104df770e232e756986bf301c87e9ce.tar.gz cpython-1e045b183104df770e232e756986bf301c87e9ce.tar.bz2 |
Issue #12105: Add O_CLOEXEC to the os module.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 396243e..9c19ed0 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -9783,6 +9783,9 @@ all_ins(PyObject *d) #ifdef PRIO_USER if (ins(d, "PRIO_USER", (long)PRIO_USER)) return -1; #endif +#ifdef O_CLOEXEC + if (ins(d, "O_CLOEXEC", (long)O_CLOEXEC)) return -1; +#endif /* posix - constants for *at functions */ #ifdef AT_SYMLINK_NOFOLLOW if (ins(d, "AT_SYMLINK_NOFOLLOW", (long)AT_SYMLINK_NOFOLLOW)) return -1; |