There was an error while loading. Please reload this page.
1 parent c99b512 commit 2716d53Copy full SHA for 2716d53
2 files changed
Misc/NEWS
@@ -206,6 +206,8 @@ Core and Builtins
206
Library
207
-------
208
209
+- fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
210
+
211
- Issue #15972: Fix error messages when os functions expecting a file name or
212
file descriptor receive the incorrect type.
213
Modules/fcntlmodule.c
@@ -461,6 +461,9 @@ all_ins(PyObject* d)
461
#ifdef F_DUPFD
462
if (ins(d, "F_DUPFD", (long)F_DUPFD)) return -1;
463
#endif
464
+#ifdef F_DUPFD_CLOEXEC
465
+ if (ins(d, "F_DUPFD_CLOEXEC", (long)F_DUPFD_CLOEXEC)) return -1;
466
+#endif
467
#ifdef F_GETFD
468
if (ins(d, "F_GETFD", (long)F_GETFD)) return -1;
469
0 commit comments