projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use free Windows DDK and compile with latest MinGW releases.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
io
/
commit.c
1
#include <msvcrti.h>
2
3
4
#define _IOCOMMIT 0x008000
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
((
HANDLE
)
_get_osfhandle
(
_fd
)) )
17
{
18
__set_errno
(
EBADF
);
19
return
-
1
;
20
}
21
22
return
0
;
23
}