* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
implement fsync.
This commit is contained in:
parent
27f9d02eb9
commit
af3b06be14
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
|
||||||
|
implement fsync.
|
||||||
|
|
||||||
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Check for nvlist_lookup_string in nvpair since we
|
* configure.ac: Check for nvlist_lookup_string in nvpair since we
|
||||||
|
|
|
@ -422,8 +422,11 @@ grub_util_fopen (const char *path, const char *mode)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fsync (int fno __attribute__ ((unused)))
|
int fsync (int fno)
|
||||||
{
|
{
|
||||||
|
HANDLE hnd;
|
||||||
|
hnd = _get_osfhandle (fno);
|
||||||
|
FlushFileBuffers (hnd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue