From: Victor Stinner Date: Fri, 13 Nov 2015 08:14:05 +0000 (+0100) Subject: Merge 3.4 (issue #25605) X-Git-Tag: v3.5.1rc1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33be3e3d5b52762ba6706df6bd98f2e341a8d9ba;p=python Merge 3.4 (issue #25605) --- 33be3e3d5b52762ba6706df6bd98f2e341a8d9ba diff --cc Doc/library/fcntl.rst index e0d184fd06,b798f22d7f..f8bb8340ea --- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@@ -104,11 -106,13 +106,13 @@@ The module defines the following functi :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]]]) +.. function:: lockf(fd, cmd, len=0, start=0, whence=0) This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls. - *fd* is the file descriptor of the file to lock or unlock, and *operation* + *fd* is the file descriptor of the file to lock or unlock, and *cmd* is one of the following values: * :const:`LOCK_UN` -- unlock