projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5496ba2
)
Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
author
Victor Stinner
<victor.stinner@gmail.com>
Fri, 13 Nov 2015 08:13:48 +0000
(09:13 +0100)
committer
Victor Stinner
<victor.stinner@gmail.com>
Fri, 13 Nov 2015 08:13:48 +0000
(09:13 +0100)
Doc/library/fcntl.rst
patch
|
blob
|
history
diff --git
a/Doc/library/fcntl.rst
b/Doc/library/fcntl.rst
index a517d6e275ddb15feb324cc26b115a388099330d..b798f22d7fb5295cc21c98c31de4dec6b786fa5b 100644
(file)
--- 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]]])