Rivoreo Source Code Repositories
src.rivoreo.one
/
toolbox
/
ee7d62d7993e03b6a95b0ff699c4006f89ee654e
/
.
/
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
;
}