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
bb033827
Commit
bb033827
authored
May 16, 2005
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add O_SHLOCK & O_EXLOCK. Closes patch #1103951.
parent
fa3f3474
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
Doc/lib/libos.tex
Doc/lib/libos.tex
+5
-1
Misc/NEWS
Misc/NEWS
+3
-0
Modules/posixmodule.c
Modules/posixmodule.c
+6
-0
No files found.
Doc/lib/libos.tex
View file @
bb033827
...
...
@@ -594,7 +594,9 @@ its \method{write()} method.
The following data items are available for use in constructing the
\var
{
flags
}
parameter to the
\function
{
open()
}
function.
\var
{
flags
}
parameter to the
\function
{
open()
}
function. Some items will
not be available on all platforms. For descriptions of their availability
and use, consult
\manpage
{
open
}{
2
}
.
\begin{datadesc}
{
O
_
RDONLY
}
\dataline
{
O
_
WRONLY
}
...
...
@@ -614,6 +616,8 @@ Availability: Macintosh, \UNIX, Windows.
\dataline
{
O
_
NDELAY
}
\dataline
{
O
_
NONBLOCK
}
\dataline
{
O
_
NOCTTY
}
\dataline
{
O
_
SHLOCK
}
\dataline
{
O
_
EXLOCK
}
More options for the
\var
{
flag
}
argument to the
\function
{
open()
}
function.
Availability: Macintosh,
\UNIX
.
\end{datadesc}
...
...
Misc/NEWS
View file @
bb033827
...
...
@@ -81,6 +81,9 @@ Core and builtins
Extension Modules
-----------------
- Patch #1103951: Expose O_SHLOCK and O_EXLOCK in the posix module if
available on the platform.
- Bug #1166660: The readline module could segfault if hook functions
were set in a different thread than that which called readline.
...
...
Modules/posixmodule.c
View file @
bb033827
...
...
@@ -7718,6 +7718,12 @@ all_ins(PyObject *d)
#ifdef O_LARGEFILE
if
(
ins
(
d
,
"O_LARGEFILE"
,
(
long
)
O_LARGEFILE
))
return
-
1
;
#endif
#ifdef O_SHLOCK
if
(
ins
(
d
,
"O_SHLOCK"
,
(
long
)
O_SHLOCK
))
return
-
1
;
#endif
#ifdef O_EXLOCK
if
(
ins
(
d
,
"O_EXLOCK"
,
(
long
)
O_EXLOCK
))
return
-
1
;
#endif
/* MS Windows */
#ifdef O_NOINHERIT
...
...
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