msvcrt: Implement _fseeki64.

This commit is contained in:
Eryk Wieliczko 2010-11-01 21:49:22 +01:00 committed by Alexandre Julliard
parent 38d1ea2a5b
commit e81a929e6b
5 changed files with 15 additions and 7 deletions

View File

@ -648,7 +648,7 @@
@ varargs _fscanf_l(ptr str ptr) msvcrt._fscanf_l
@ varargs _fscanf_s_l(ptr str ptr) msvcrt._fscanf_s_l
@ stub _fseek_nolock
@ stub _fseeki64
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ stub _fstat32

View File

@ -489,7 +489,7 @@
@ varargs _fscanf_l(ptr str ptr) msvcrt._fscanf_l
@ varargs _fscanf_s_l(ptr str ptr) msvcrt._fscanf_s_l
@ stub _fseek_nolock
@ stub _fseeki64
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ stub _fstat32

View File

@ -481,7 +481,7 @@
@ varargs _fscanf_l(ptr str ptr) msvcrt._fscanf_l
@ varargs _fscanf_s_l(ptr str ptr) msvcrt._fscanf_s_l
@ stub _fseek_nolock
@ stub _fseeki64
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ stub _fstat32

View File

@ -942,9 +942,9 @@ int CDECL MSVCRT__locking(int fd, int mode, LONG nbytes)
}
/*********************************************************************
* fseek (MSVCRT.@)
* _fseeki64 (MSVCRT.@)
*/
int CDECL MSVCRT_fseek(MSVCRT_FILE* file, MSVCRT_long offset, int whence)
int CDECL MSVCRT__fseeki64(MSVCRT_FILE* file, __int64 offset, int whence)
{
/* Flush output if needed */
if(file->_flag & MSVCRT__IOWRT)
@ -973,7 +973,15 @@ int CDECL MSVCRT_fseek(MSVCRT_FILE* file, MSVCRT_long offset, int whence)
}
/* Clear end of file flag */
file->_flag &= ~MSVCRT__IOEOF;
return (MSVCRT__lseek(file->_file,offset,whence) == -1)?-1:0;
return (MSVCRT__lseeki64(file->_file,offset,whence) == -1)?-1:0;
}
/*********************************************************************
* fseek (MSVCRT.@)
*/
int CDECL MSVCRT_fseek(MSVCRT_FILE* file, MSVCRT_long offset, int whence)
{
return MSVCRT__fseeki64( file, offset, whence );
}
/*********************************************************************

View File

@ -435,7 +435,7 @@
# stub _fscanf_l
@ varargs _fscanf_l(ptr str ptr) MSVCRT__fscanf_l
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
# stub _fseeki64
@ cdecl _fseeki64(ptr int64 long) MSVCRT__fseeki64
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat(long ptr) MSVCRT__fstat
@ cdecl _fstat64(long ptr) MSVCRT__fstat64