mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
This commit is contained in:
parent
c99b5120a7
commit
2716d531a1
2 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
|
||||||
|
|
||||||
- Issue #15972: Fix error messages when os functions expecting a file name or
|
- Issue #15972: Fix error messages when os functions expecting a file name or
|
||||||
file descriptor receive the incorrect type.
|
file descriptor receive the incorrect type.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -461,6 +461,9 @@ all_ins(PyObject* d)
|
||||||
#ifdef F_DUPFD
|
#ifdef F_DUPFD
|
||||||
if (ins(d, "F_DUPFD", (long)F_DUPFD)) return -1;
|
if (ins(d, "F_DUPFD", (long)F_DUPFD)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef F_DUPFD_CLOEXEC
|
||||||
|
if (ins(d, "F_DUPFD_CLOEXEC", (long)F_DUPFD_CLOEXEC)) return -1;
|
||||||
|
#endif
|
||||||
#ifdef F_GETFD
|
#ifdef F_GETFD
|
||||||
if (ins(d, "F_GETFD", (long)F_GETFD)) return -1;
|
if (ins(d, "F_GETFD", (long)F_GETFD)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue