cpython: d76e91a29f64 (original) (raw)

--- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@ -1,5 +1,5 @@ -:mod:fcntl --- The :func:fcntl and :func:ioctl system calls -================================================================= +:mod:fcntl --- The fcntl and ioctl system calls +========================================================= .. module:: fcntl :platform: Unix @@ -17,7 +17,8 @@ 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 :class:io.IOBase object, such as sys.stdin -itself, which provides a :meth:fileno that returns a genuine file descriptor. +itself, which provides a :meth:~io.IOBase.fileno that returns a genuine file +descriptor. .. versionchanged:: 3.3 Operations in this module used to raise a :exc:IOError where they now @@ -30,7 +31,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]])

@@ -59,7 +61,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]]])