Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / io / locking.c
1 #include <msvcrti.h>
2
3
4 int _locking(int _fd, int mode, long nbytes)
5 {
6 long offset = _lseek(_fd, 0L, 1);
7 if (!LockFile((HANDLE)_get_osfhandle(_fd),offset,0,nbytes,0))
8 return -1;
9 return 0;
10 }