update for HEAD-2003091401
[reactos.git] / lib / crtdll / 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
7 /*
8  * @implemented
9  */
10 int _commit(int _fd)
11 {
12         if (! FlushFileBuffers(_get_osfhandle(_fd)) ) {
13                 __set_errno(EBADF);
14                 return -1;
15         }
16
17         return  0;
18 }