@@ -89,14 +89,14 @@ The module defines the following functions:
89
89
for *cmd * are operating system dependent, and are available as constants
90
90
in the :mod: `fcntl ` module, using the same names as used in the relevant C
91
91
header files. The argument *arg * can either be an integer value, a
92
- :class : `bytes ` object, or a string.
92
+ :term : `bytes-like object ` , or a string.
93
93
The type and size of *arg * must match the type and size of
94
94
the argument of the operation as specified in the relevant C documentation.
95
95
96
96
When *arg * is an integer, the function returns the integer
97
97
return value of the C :c:func: `fcntl ` call.
98
98
99
- When the argument is bytes, it represents a binary structure,
99
+ When the argument is bytes-like object , it represents a binary structure,
100
100
for example, created by :func: `struct.pack `.
101
101
A string value is encoded to binary using the UTF-8 encoding.
102
102
The binary data is copied to a buffer whose address is
@@ -117,6 +117,10 @@ The module defines the following functions:
117
117
118
118
.. audit-event :: fcntl.fcntl fd,cmd,arg fcntl.fcntl
119
119
120
+ .. versionchanged :: next
121
+ Add support of arbitrary :term: `bytes-like objects <bytes-like object> `,
122
+ not only :class: `bytes `.
123
+
120
124
121
125
.. function :: ioctl(fd, request, arg=0, mutate_flag=True, /)
122
126
@@ -173,6 +177,9 @@ The module defines the following functions:
173
177
174
178
.. audit-event :: fcntl.ioctl fd,request,arg fcntl.ioctl
175
179
180
+ .. versionchanged :: next
181
+ The GIL is always released during a system call.
182
+ System calls failing with EINTR are automatically retries.
176
183
177
184
.. function :: flock(fd, operation, /)
178
185
0 commit comments