summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-05-22 18:42:32 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-05-22 18:42:32 (GMT)
commit1e045b183104df770e232e756986bf301c87e9ce (patch)
treec32a523ffd41a155df1e3f2e8be2860970617ab0 /Modules
parentf738d33e5d5cfa19938003af4a57f91b5e5e277b (diff)
downloadcpython-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.c3
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;