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
1edcd50b
Commit
1edcd50b
authored
Apr 09, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.5: fcntl doc
parents
d7e44b61
d0d51542
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/library/fcntl.rst
Doc/library/fcntl.rst
+2
-2
Modules/fcntlmodule.c
Modules/fcntlmodule.c
+1
-1
No files found.
Doc/library/fcntl.rst
View file @
1edcd50b
...
...
@@ -83,7 +83,7 @@ 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:`
IO
Error` exception is raised.
If the :c:func:`ioctl` fails, an :exc:`
OS
Error` exception is raised.
An example::
...
...
@@ -106,7 +106,7 @@ 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:`
IO
Error` exception is raised.
If the :c:func:`flock` fails, an :exc:`
OS
Error` exception is raised.
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
...
...
Modules/fcntlmodule.c
View file @
1edcd50b
...
...
@@ -344,7 +344,7 @@ of the following values:
When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
lock cannot be acquired, an
IO
Error will be raised and the exception will
lock cannot be acquired, an
OS
Error will be raised and the exception will
have an errno attribute set to EACCES or EAGAIN (depending on the operating
system -- for portability, check for either value).
...
...
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