summaryrefslogtreecommitdiffstats
path: root/Doc/library/fcntl.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-17 12:29:12 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-17 12:29:12 (GMT)
commit71515ca191f32651c923c70e891632b4ac820b4f (patch)
treed6694e4aabe615b76ca113374bf35cd817fca330 /Doc/library/fcntl.rst
parentef0a865f9c906a1298c43a453b2195d86befd6a4 (diff)
downloadcpython-71515ca191f32651c923c70e891632b4ac820b4f.zip
cpython-71515ca191f32651c923c70e891632b4ac820b4f.tar.gz
cpython-71515ca191f32651c923c70e891632b4ac820b4f.tar.bz2
Remove surplus empty lines and convert more files to new optional arg style.
Diffstat (limited to 'Doc/library/fcntl.rst')
-rw-r--r--Doc/library/fcntl.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
index 0e69407..a397afc 100644
--- a/Doc/library/fcntl.rst
+++ b/Doc/library/fcntl.rst
@@ -1,4 +1,3 @@
-
:mod:`fcntl` --- The :func:`fcntl` and :func:`ioctl` system calls
=================================================================
@@ -65,13 +64,13 @@ The module defines the following functions:
so long as the buffer you pass is as least as long as what the operating system
wants to put there, things should work.
- If *mutate_flag* is true (the default), then the buffer is (in effect) passed to the
- underlying :func:`ioctl` system call, the latter's return code is passed back to
- the calling Python, and the buffer's new contents reflect the action of the
- :func:`ioctl`. This is a slight simplification, because if the supplied buffer
- is less than 1024 bytes long it is first copied into a static buffer 1024 bytes
- long which is then passed to :func:`ioctl` and copied back into the supplied
- buffer.
+ If *mutate_flag* is true (the default), then the buffer is (in effect) passed
+ to the underlying :func:`ioctl` system call, the latter's return code is
+ passed back to the calling Python, and the buffer's new contents reflect the
+ action of the :func:`ioctl`. This is a slight simplification, because if the
+ supplied buffer is less than 1024 bytes long it is first copied into a static
+ buffer 1024 bytes long which is then passed to :func:`ioctl` and copied back
+ into the supplied buffer.
An example::