@@ -79,6 +79,10 @@ descriptor.
7979 On macOS and NetBSD, the :mod: `!fcntl ` module exposes the ``F_GETNOSIGPIPE ``
8080 and ``F_SETNOSIGPIPE `` constant.
8181
82+ .. versionchanged :: next
83+ On Linux >= 6.1, the :mod: `!fcntl ` module exposes the ``F_DUPFD_QUERY ``
84+ to query a file descriptor pointing to the same file.
85+
8286The module defines the following functions:
8387
8488
@@ -89,14 +93,14 @@ The module defines the following functions:
8993 for *cmd * are operating system dependent, and are available as constants
9094 in the :mod: `fcntl ` module, using the same names as used in the relevant C
9195 header files. The argument *arg * can either be an integer value, a
92- :class : `bytes ` object, or a string.
96+ :term : `bytes-like object ` , or a string.
9397 The type and size of *arg * must match the type and size of
9498 the argument of the operation as specified in the relevant C documentation.
9599
96100 When *arg * is an integer, the function returns the integer
97101 return value of the C :c:func: `fcntl ` call.
98102
99- When the argument is bytes, it represents a binary structure,
103+ When the argument is bytes-like object , it represents a binary structure,
100104 for example, created by :func: `struct.pack `.
101105 A string value is encoded to binary using the UTF-8 encoding.
102106 The binary data is copied to a buffer whose address is
@@ -117,6 +121,10 @@ The module defines the following functions:
117121
118122 .. audit-event :: fcntl.fcntl fd,cmd,arg fcntl.fcntl
119123
124+ .. versionchanged :: next
125+ Add support of arbitrary :term: `bytes-like objects <bytes-like object> `,
126+ not only :class: `bytes `.
127+
120128
121129.. function :: ioctl(fd, request, arg=0, mutate_flag=True, /)
122130
@@ -173,6 +181,9 @@ The module defines the following functions:
173181
174182 .. audit-event :: fcntl.ioctl fd,request,arg fcntl.ioctl
175183
184+ .. versionchanged :: next
185+ The GIL is always released during a system call.
186+ System calls failing with EINTR are automatically retried.
176187
177188.. function :: flock(fd, operation, /)
178189
0 commit comments