733fe8411fc1a7137eec44c83523125f497aa9a0
[reactos.git] / reactos / lib / crtdll / io / locking.c
1 #include <precomp.h>
2 #include <msvcrt/io.h>
3
4
5 /*
6 * @implemented
7 */
8 int _locking(int _fd, int mode, long nbytes)
9 {
10 long offset = _lseek(_fd, 0L, 1);
11 if (!LockFile(_get_osfhandle(_fd),offset,0,nbytes,0))
12 return -1;
13
14 return 0;
15 }