git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
io
/
commit.c
1
#include <windows.h>
2
#include <crtdll/io.h>
3
#include <crtdll/errno.h>
4
#include <crtdll/internal/file.h>
5
6
int _commode_dll = _IOCOMMIT;
7
8
int _commit(int _fd)
9
{
10
if (! FlushFileBuffers(_get_osfhandle(_fd)) ) {
11
__set_errno(EBADF);
12
return -1;
13
}
14
15
return 0;
16
}