update for HEAD-2003021201
[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 int _commit(int _fd)
8 {
9         if (! FlushFileBuffers(_get_osfhandle(_fd)) ) {
10                 __set_errno(EBADF);
11                 return -1;
12         }
13
14         return  0;
15 }