Skip to content

Commit a35188d

Browse files
document all parameters as positional-only.
1 parent 07b081d commit a35188d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/fcntl.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ descriptor.
8282
The module defines the following functions:
8383

8484

85-
.. function:: fcntl(fd, cmd, arg=0)
85+
.. function:: fcntl(fd, cmd, arg=0, /)
8686

8787
Perform the operation *cmd* on file descriptor *fd* (file objects providing
8888
a :meth:`~io.IOBase.fileno` method are accepted as well). The values used
@@ -118,7 +118,7 @@ The module defines the following functions:
118118
.. audit-event:: fcntl.fcntl fd,cmd,arg fcntl.fcntl
119119

120120

121-
.. function:: ioctl(fd, request, arg=0, mutate_flag=True)
121+
.. function:: ioctl(fd, request, arg=0, mutate_flag=True, /)
122122

123123
This function is identical to the :func:`~fcntl.fcntl` function, except
124124
that the argument handling is even more complicated.
@@ -174,7 +174,7 @@ The module defines the following functions:
174174
.. audit-event:: fcntl.ioctl fd,request,arg fcntl.ioctl
175175

176176

177-
.. function:: flock(fd, operation)
177+
.. function:: flock(fd, operation, /)
178178

179179
Perform the lock operation *operation* on file descriptor *fd* (file objects providing
180180
a :meth:`~io.IOBase.fileno` method are accepted as well). See the Unix manual
@@ -186,7 +186,7 @@ The module defines the following functions:
186186
.. audit-event:: fcntl.flock fd,operation fcntl.flock
187187

188188

189-
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
189+
.. function:: lockf(fd, cmd, len=0, start=0, whence=0, /)
190190

191191
This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls.
192192
*fd* is the file descriptor (file objects providing a :meth:`~io.IOBase.fileno`

0 commit comments

Comments
 (0)