Rivoreo Source Code Repositories
src.rivoreo.one
/
toolbox
/
8124b073974b3e39ff8eccbd19ae82280b17f1df
/
.
/
posix-io-for-windows
/
fsync.c
blob: 6acde144dc4486740df2e1a610f710f4738a7ee6 [
file
] [
log
] [
blame
] [
raw
]
/*
* This file has no copyright assigned and is placed in the Public Domain.
* No warranty is given.
*
* Written by PC GO
*
*/
#include
<windows.h>
int
fsync
(
int
fd
)
{
return
FlushFileBuffers
((
void
*)
fd
)
?
0
:
-
1
;
}