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