Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
77cd0cea
Commit
77cd0cea
authored
Sep 13, 2019
by
Eric O. LEBIGOT (EOL)
Committed by
Stéphane Wirtel
Sep 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: fcntl.lockf() is more powerful than written (GH-6750)
parent
0bc17ea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/fcntl.rst
Doc/library/fcntl.rst
+2
-2
No files found.
Doc/library/fcntl.rst
View file @
77cd0cea
...
@@ -124,7 +124,8 @@ The module defines the following functions:
...
@@ -124,7 +124,8 @@ The module defines the following functions:
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls.
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 *cmd*
*fd* is the file descriptor (file objects providing a :meth:`~io.IOBase.fileno`
method are accepted as well) of the file to lock or unlock, and *cmd*
is one of the following values:
is one of the following values:
* :const:`LOCK_UN` -- unlock
* :const:`LOCK_UN` -- unlock
...
@@ -175,4 +176,3 @@ using the :func:`flock` call may be better.
...
@@ -175,4 +176,3 @@ using the :func:`flock` call may be better.
present in the :mod:`os` module (on BSD only), the :func:`os.open`
present in the :mod:`os` module (on BSD only), the :func:`os.open`
function provides an alternative to the :func:`lockf` and :func:`flock`
function provides an alternative to the :func:`lockf` and :func:`flock`
functions.
functions.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment