Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
63b9e598
Commit
63b9e598
authored
Jun 18, 2015
by
Ari Suutari
Committed by
Paul Sokolovsky
Jun 21, 2015
Browse files
unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a").
To comply with Python semantics.
parent
60ccb41f
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/file.c
View file @
63b9e598
...
...
@@ -161,7 +161,7 @@ STATIC mp_obj_t fdfile_open(mp_obj_t type_in, mp_arg_val_t *args) {
mode
|=
O_WRONLY
|
O_CREAT
|
O_TRUNC
;
break
;
case
'a'
:
mode
|=
O_APPEND
;
mode
|=
O_WRONLY
|
O_CREAT
|
O_APPEND
;
break
;
case
'+'
:
mode
|=
O_RDWR
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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