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
/
msvcrt
/
io
/
commit.c
1
#include <windows.h>
2
#include <msvcrt/io.h>
3
#include <msvcrt/errno.h>
4
#include <msvcrt/internal/file.h>
5
6
int _commode = _IOCOMMIT;
7
8
9
int *__p__commode(void)
10
{
11
return &_commode;
12
}
13
14
int _commit(int _fd)
15
{
16
if (! FlushFileBuffers(_get_osfhandle(_fd)) )
17
{
18
__set_errno(EBADF);
19
return -1;
20
}
21
22
return 0;
23
}