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