Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5077d8c1
Commit
5077d8c1
authored
Oct 15, 2014
by
Iván Matellanes
Committed by
Alexandre Julliard
Oct 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _fseeki64_nolock implementation.
parent
50574ccf
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
6 deletions
+20
-6
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
file.c
dlls/msvcrt/file.c
+14
-2
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
stdio.h
include/msvcrt/stdio.h
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
5077d8c1
...
...
@@ -842,7 +842,7 @@
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
@ stub _fseek_nolock
@ cdecl _fseeki64(ptr int64 long) MSVCRT__fseeki64
@
stub
_fseeki64_nolock
@
cdecl _fseeki64_nolock(ptr int64 long) MSVCRT_
_fseeki64_nolock
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat32(long ptr) MSVCRT__fstat32
@ stub _fstat32i64
...
...
dlls/msvcr110/msvcr110.spec
View file @
5077d8c1
...
...
@@ -1190,7 +1190,7 @@
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
@ stub _fseek_nolock
@ cdecl _fseeki64(ptr int64 long) MSVCRT__fseeki64
@
stub
_fseeki64_nolock
@
cdecl _fseeki64_nolock(ptr int64 long) MSVCRT_
_fseeki64_nolock
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat32(long ptr) MSVCRT__fstat32
@ stub _fstat32i64
...
...
dlls/msvcr80/msvcr80.spec
View file @
5077d8c1
...
...
@@ -509,7 +509,7 @@
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
@ stub _fseek_nolock
@ cdecl _fseeki64(ptr int64 long) MSVCRT__fseeki64
@
stub
_fseeki64_nolock
@
cdecl _fseeki64_nolock(ptr int64 long) MSVCRT_
_fseeki64_nolock
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat32(long ptr) MSVCRT__fstat32
@ stub _fstat32i64
...
...
dlls/msvcr90/msvcr90.spec
View file @
5077d8c1
...
...
@@ -491,7 +491,7 @@
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
@ stub _fseek_nolock
@ cdecl _fseeki64(ptr int64 long) MSVCRT__fseeki64
@
stub
_fseeki64_nolock
@
cdecl _fseeki64_nolock(ptr int64 long) MSVCRT_
_fseeki64_nolock
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat32(long ptr) MSVCRT__fstat32
@ stub _fstat32i64
...
...
dlls/msvcrt/file.c
View file @
5077d8c1
...
...
@@ -1249,13 +1249,26 @@ int CDECL MSVCRT__fseeki64(MSVCRT_FILE* file, __int64 offset, int whence)
int
ret
;
MSVCRT__lock_file
(
file
);
ret
=
MSVCRT__fseeki64_nolock
(
file
,
offset
,
whence
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
* _fseeki64_nolock (MSVCRT.@)
*/
int
CDECL
MSVCRT__fseeki64_nolock
(
MSVCRT_FILE
*
file
,
__int64
offset
,
int
whence
)
{
int
ret
;
/* Flush output if needed */
if
(
file
->
_flag
&
MSVCRT__IOWRT
)
msvcrt_flush_buffer
(
file
);
if
(
whence
==
SEEK_CUR
&&
file
->
_flag
&
MSVCRT__IOREAD
)
{
whence
=
SEEK_SET
;
offset
+=
MSVCRT__ftelli64
(
file
);
offset
+=
MSVCRT__ftelli64
_nolock
(
file
);
}
/* Discard buffered input */
...
...
@@ -1269,7 +1282,6 @@ int CDECL MSVCRT__fseeki64(MSVCRT_FILE* file, __int64 offset, int whence)
file
->
_flag
&=
~
MSVCRT__IOEOF
;
ret
=
(
MSVCRT__lseeki64
(
file
->
_file
,
offset
,
whence
)
==
-
1
)
?-
1
:
0
;
MSVCRT__unlock_file
(
file
);
return
ret
;
}
...
...
dlls/msvcrt/msvcrt.h
View file @
5077d8c1
...
...
@@ -919,6 +919,7 @@ int __cdecl MSVCRT_fgetc(MSVCRT_FILE*);
int
__cdecl
MSVCRT_ungetc
(
int
,
MSVCRT_FILE
*
);
MSVCRT_wint_t
__cdecl
MSVCRT_fgetwc
(
MSVCRT_FILE
*
);
MSVCRT_wint_t
__cdecl
MSVCRT_ungetwc
(
MSVCRT_wint_t
,
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT__fseeki64_nolock
(
MSVCRT_FILE
*
,
__int64
,
int
);
__int64
__cdecl
MSVCRT__ftelli64
(
MSVCRT_FILE
*
file
);
__int64
__cdecl
MSVCRT__ftelli64_nolock
(
MSVCRT_FILE
*
);
void
__cdecl
MSVCRT__exit
(
int
);
...
...
include/msvcrt/stdio.h
View file @
5077d8c1
...
...
@@ -130,6 +130,7 @@ int __cdecl _vsprintf_p_l(char*,size_t,const char*,_locale_t,__ms_va_list);
size_t
__cdecl
_fread_nolock
(
void
*
,
size_t
,
size_t
,
FILE
*
);
size_t
__cdecl
_fwrite_nolock
(
const
void
*
,
size_t
,
size_t
,
FILE
*
);
int
__cdecl
_fclose_nolock
(
FILE
*
);
int
__cdecl
_fseeki64_nolock
(
FILE
*
,
__int64
,
int
);
__msvcrt_long
__cdecl
_ftell_nolock
(
FILE
*
);
__int64
__cdecl
_ftelli64_nolock
(
FILE
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment