mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +00:00

* lib/msvcrt/.cvsignore: Ignore *.gch. * lib/msvcrt/precomp.h: New file. * lib/msvcrt/Makefile (TARGET_PCH): Set to precomp.h. * lib/msvcrt/*/*.c: Use pre-compiled header. svn path=/trunk/; revision=10555
20 lines
426 B
C
20 lines
426 B
C
#include "precomp.h"
|
|
#include <msvcrt/io.h>
|
|
#include <msvcrt/internal/file.h>
|
|
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
long _lseek(int _fildes, long _offset, int _whence)
|
|
{
|
|
DWORD newpos = SetFilePointer((HANDLE)filehnd(_fildes), _offset, NULL, _whence);
|
|
if (newpos == INVALID_SET_FILE_POINTER) {
|
|
DWORD oserror = GetLastError();
|
|
if (oserror != 0) {
|
|
_dosmaperr(oserror);
|
|
return -1L;
|
|
}
|
|
}
|
|
return newpos;
|
|
}
|