summaryrefslogtreecommitdiffstats
path: root/Doc/library/fcntl.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-11-13 08:14:05 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-11-13 08:14:05 (GMT)
commit33be3e3d5b52762ba6706df6bd98f2e341a8d9ba (patch)
treea1d217f23fef083fdb9f6c780788d13c305bc98c /Doc/library/fcntl.rst
parent30c328f6117eea11daeccbd6c0a8b54e78aef8af (diff)
parent9cccfcecc8883c9bcfdc5bc5fb88c37e1e1113b8 (diff)
downloadcpython-33be3e3d5b52762ba6706df6bd98f2e341a8d9ba.zip
cpython-33be3e3d5b52762ba6706df6bd98f2e341a8d9ba.tar.gz
cpython-33be3e3d5b52762ba6706df6bd98f2e341a8d9ba.tar.bz2
Merge 3.4 (issue #25605)
Diffstat (limited to 'Doc/library/fcntl.rst')
-rw-r--r--Doc/library/fcntl.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
index e0d184f..f8bb834 100644
--- a/Doc/library/fcntl.rst
+++ b/Doc/library/fcntl.rst
@@ -83,6 +83,8 @@ The module defines the following functions:
buffer 1024 bytes long which is then passed to :func:`ioctl` and copied back
into the supplied buffer.
+ If the :c:func:`ioctl` fails, an :exc:`IOError` exception is raised.
+
An example::
>>> import array, fcntl, struct, termios, os
@@ -104,6 +106,8 @@ The module defines the following functions:
:manpage:`flock(2)` for details. (On some systems, this function is emulated
using :c:func:`fcntl`.)
+ If the :c:func:`flock` fails, an :exc:`IOError` exception is raised.
+
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)