diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-11-13 08:13:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-11-13 08:13:48 (GMT) |
commit | 9cccfcecc8883c9bcfdc5bc5fb88c37e1e1113b8 (patch) | |
tree | 4834d6fe1137179c89ae2a83b5a7772c0e629b1a /Doc/library | |
parent | 5496ba2ddbea2d1305ed606859ba594852814378 (diff) | |
download | cpython-9cccfcecc8883c9bcfdc5bc5fb88c37e1e1113b8.zip cpython-9cccfcecc8883c9bcfdc5bc5fb88c37e1e1113b8.tar.gz cpython-9cccfcecc8883c9bcfdc5bc5fb88c37e1e1113b8.tar.bz2 |
Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/fcntl.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst index a517d6e..b798f22 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, operation, [length, [start, [whence]]]) |