cpython: 372abcca25fc (original) (raw)

--- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@ -1,6 +1,5 @@ - -:mod:fcntl --- The :func:fcntl and :func:ioctl system calls -================================================================= +:mod:fcntl --- The fcntl and ioctl system calls +========================================================= .. module:: fcntl :platform: Unix @@ -18,7 +17,7 @@ interface to the :c:func:fcntl and :c: All functions in this module take a file descriptor fd as their first argument. This can be an integer file descriptor, such as returned by sys.stdin.fileno(), or a file object, such as sys.stdin itself, which -provides a :meth:fileno which returns a genuine file descriptor. +provides a :meth:~io.IOBase.fileno which returns a genuine file descriptor. The module defines the following functions: @@ -26,7 +25,8 @@ The module defines the following functio .. function:: fcntl(fd, op[, arg]) Perform the requested operation on file descriptor fd (file objects providing

.. function:: ioctl(fd, op[, arg[, mutate_flag]])

@@ -56,7 +56,8 @@ The module defines the following functio integer 0), an object supporting the read-only buffer interface (most likely a plain Python string) or an object supporting the read-write buffer interface.

.. function:: lockf(fd, operation, [length, [start, [whence]]])