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