SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

gh-132742: Refactor fcntl.fcntl() and fcntl.ioctl() (GH-132768)

* Support arbitrary bytes-like objects, not only bytes, in fcntl().
* The fcntl() buffer argument is now null-terminated.
* Automatically retry an ioctl() system calls failing with EINTR.
* Release the GIL for an ioctl() system call even for large bytes-like object.
* Do not silence arbitrary errors whet try to get a buffer.
* Optimize argument parsing, check the argument type before trying to get
  a buffer or convert it to integer.
* Fix some error messages.
S
Serhiy Storchaka committed
9f5994b94cb6b8526bcb8fa29a99656dc403e25e
Parent: 8c975b0
Committed by GitHub <noreply@github.com> on 4/24/2025, 4:17:11 PM