summaryrefslogtreecommitdiffstats
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-01-07 23:52:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-01-07 23:52:40 (GMT)
commit2716d531a1e2553bc6df43852357053370ff8bb0 (patch)
tree6082404f45490ebd6cf3d6d30a3ec1e044237219 /Modules/fcntlmodule.c
parentc99b5120a7389323fce2d41dbbe15d04589ad0a0 (diff)
downloadcpython-2716d531a1e2553bc6df43852357053370ff8bb0.zip
cpython-2716d531a1e2553bc6df43852357053370ff8bb0.tar.gz
cpython-2716d531a1e2553bc6df43852357053370ff8bb0.tar.bz2
fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 5509026..bc2c181 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -461,6 +461,9 @@ all_ins(PyObject* d)
#ifdef F_DUPFD
if (ins(d, "F_DUPFD", (long)F_DUPFD)) return -1;
#endif
+#ifdef F_DUPFD_CLOEXEC
+ if (ins(d, "F_DUPFD_CLOEXEC", (long)F_DUPFD_CLOEXEC)) return -1;
+#endif
#ifdef F_GETFD
if (ins(d, "F_GETFD", (long)F_GETFD)) return -1;
#endif