Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
dce8876d
Commit
dce8876d
authored
Jul 13, 2014
by
Paul Sokolovsky
Browse files
unix: file: No fsync() on Windows.
parent
ac736f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/file.c
View file @
dce8876d
...
...
@@ -83,8 +83,12 @@ STATIC mp_int_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int
}
STATIC
mp_obj_t
fdfile_flush
(
mp_obj_t
self_in
)
{
#ifndef _WIN32
mp_obj_fdfile_t
*
self
=
self_in
;
fsync
(
self
->
fd
);
#else
//TODO
#endif
return
mp_const_none
;
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
fdfile_flush_obj
,
fdfile_flush
);
...
...
Write
Preview
Supports
Markdown
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