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
69ec649f
Commit
69ec649f
authored
Sep 11, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force O_BINARY in flags if defined, for e.g. Microsoft platforms.
parent
40a4a7f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Modules/bsddbmodule.c
Modules/bsddbmodule.c
+10
-1
No files found.
Modules/bsddbmodule.c
View file @
69ec649f
...
...
@@ -80,6 +80,9 @@ newdbhashobject(file, flags, mode,
info
.
hash
=
NULL
;
/* XXX should derive from hash argument */
info
.
lorder
=
lorder
;
#ifdef O_BINARY
flags
|=
O_BINARY
;
#endif
if
((
dp
->
di_bsddb
=
dbopen
(
file
,
flags
,
mode
,
DB_HASH
,
&
info
))
==
NULL
)
{
PyErr_SetFromErrno
(
BsddbError
);
Py_DECREF
(
dp
);
...
...
@@ -116,9 +119,12 @@ newdbbtobject(file, flags, mode,
info
.
minkeypage
=
minkeypage
;
info
.
psize
=
psize
;
info
.
lorder
=
lorder
;
info
.
compare
=
0
;
/* Use default comparison functions, for now..*/
info
.
compare
=
0
;
/* Use default comparison functions, for now..*/
info
.
prefix
=
0
;
#ifdef O_BINARY
flags
|=
O_BINARY
;
#endif
if
((
dp
->
di_bsddb
=
dbopen
(
file
,
flags
,
mode
,
DB_BTREE
,
&
info
))
==
NULL
)
{
PyErr_SetFromErrno
(
BsddbError
);
Py_DECREF
(
dp
);
...
...
@@ -158,6 +164,9 @@ newdbrnobject(file, flags, mode,
info
.
bval
=
bval
;
info
.
bfname
=
bfname
;
#ifdef O_BINARY
flags
|=
O_BINARY
;
#endif
if
((
dp
->
di_bsddb
=
dbopen
(
file
,
flags
,
mode
,
DB_RECNO
,
&
info
))
==
NULL
)
{
PyErr_SetFromErrno
(
BsddbError
);
Py_DECREF
(
dp
);
...
...
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