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
a3927b5e
Commit
a3927b5e
authored
Nov 03, 2010
by
Eryk Wieliczko
Committed by
Alexandre Julliard
Nov 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _ftelli64.
parent
70e6a2f7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
8 deletions
+19
-8
msvcr100.spec
dlls/msvcr100/msvcr100.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
+13
-5
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-0
stdio.h
include/msvcrt/stdio.h
+2
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
a3927b5e
...
...
@@ -656,7 +656,7 @@
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr) msvcr90._fstat64i32
@ stub _ftell_nolock
@
stub
_ftelli64
@
cdecl -ret64 _ftelli64(ptr) msvcrt.
_ftelli64
@ stub _ftelli64_nolock
@ cdecl _ftime32(ptr) msvcrt._ftime32
@ stub _ftime32_s
...
...
dlls/msvcr80/msvcr80.spec
View file @
a3927b5e
...
...
@@ -497,7 +497,7 @@
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr) msvcr90._fstat64i32
@ stub _ftell_nolock
@
stub
_ftelli64
@
cdecl -ret64 _ftelli64(ptr) msvcrt.
_ftelli64
@ stub _ftelli64_nolock
@ cdecl _ftime32(ptr) msvcrt._ftime32
@ stub _ftime32_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
a3927b5e
...
...
@@ -489,7 +489,7 @@
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr)
@ stub _ftell_nolock
@
stub
_ftelli64
@
cdecl -ret64 _ftelli64(ptr) msvcrt.
_ftelli64
@ stub _ftelli64_nolock
@ cdecl _ftime32(ptr) msvcrt._ftime32
@ stub _ftime32_s
...
...
dlls/msvcrt/file.c
View file @
a3927b5e
...
...
@@ -2997,14 +2997,14 @@ int CDECL MSVCRT_fsetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos)
}
/*********************************************************************
*
ftell
(MSVCRT.@)
*
_ftelli64
(MSVCRT.@)
*/
LONG
CDECL
MSVCRT_ftell
(
MSVCRT_FILE
*
file
)
__int64
CDECL
MSVCRT__ftelli64
(
MSVCRT_FILE
*
file
)
{
/* TODO: just call fgetpos and return lower half of result */
int
off
=
0
;
MSVCRT_long
pos
;
pos
=
MSVCRT__tell
(
file
->
_file
);
__int64
pos
;
pos
=
_telli64
(
file
->
_file
);
if
(
pos
==
-
1
)
return
-
1
;
if
(
file
->
_bufsiz
)
{
if
(
file
->
_flag
&
MSVCRT__IOWRT
)
{
...
...
@@ -3018,7 +3018,7 @@ LONG CDECL MSVCRT_ftell(MSVCRT_FILE* file)
if
(
file
->
_ptr
[
i
]
==
'\n'
)
off
--
;
}
/* Black magic when reading CR at buffer boundary*/
/* Black magic when reading CR at buffer boundary*/
if
(
MSVCRT_fdesc
[
file
->
_file
].
wxflag
&
WX_READCR
)
off
--
;
...
...
@@ -3029,6 +3029,14 @@ LONG CDECL MSVCRT_ftell(MSVCRT_FILE* file)
}
/*********************************************************************
* ftell (MSVCRT.@)
*/
LONG
CDECL
MSVCRT_ftell
(
MSVCRT_FILE
*
file
)
{
return
MSVCRT__ftelli64
(
file
);
}
/*********************************************************************
* fgetpos (MSVCRT.@)
*/
int
CDECL
MSVCRT_fgetpos
(
MSVCRT_FILE
*
file
,
MSVCRT_fpos_t
*
pos
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
a3927b5e
...
...
@@ -442,6 +442,7 @@
@ cdecl _fstat(long ptr) MSVCRT__fstat
@ cdecl _fstat64(long ptr) MSVCRT__fstat64
@ cdecl _fstati64(long ptr) MSVCRT__fstati64
@ cdecl -ret64 _ftelli64(ptr) MSVCRT__ftelli64
@ cdecl _ftime(ptr) MSVCRT__ftime
@ cdecl _ftime32(ptr) MSVCRT__ftime32
# stub _ftime32_s
...
...
include/msvcrt/stdio.h
View file @
a3927b5e
...
...
@@ -138,8 +138,10 @@ FILE* __cdecl freopen(const char*,const char*,FILE*);
int
__cdecl
fscanf
(
FILE
*
,
const
char
*
,...);
int
__cdecl
fscanf_s
(
FILE
*
,
const
char
*
,...);
int
__cdecl
fseek
(
FILE
*
,
__msvcrt_long
,
int
);
int
__cdecl
_fseeki64
(
FILE
*
,
__int64
,
int
);
int
__cdecl
fsetpos
(
FILE
*
,
fpos_t
*
);
__msvcrt_long
__cdecl
ftell
(
FILE
*
);
__int64
__cdecl
_ftelli64
(
FILE
*
);
size_t
__cdecl
fwrite
(
const
void
*
,
size_t
,
size_t
,
FILE
*
);
int
__cdecl
getc
(
FILE
*
);
int
__cdecl
getchar
(
void
);
...
...
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