blob: 83735336ac5d257d2236019c1d8ad833166b4c86 [file] [log] [blame] [raw]
/*
* This file has no copyright assigned and is placed in the Public Domain.
* No warranty is given.
*
* Written by PC GO
*
*/
#include <windows.h>
#include <unistd.h>
#include <errno.h>
off_t lseek(int fd, off_t offset, int whence) {
if(whence < 0 || whence > 2) {
errno = EINVAL;
return -1;
}
return SetFilePointer((void *)fd, offset, NULL, whence);
}