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
f99742a5
Commit
f99742a5
authored
Apr 30, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Move _fstat32 and _fstat64i32 functions to msvcrt.
parent
ff7388ca
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
38 deletions
+66
-38
msvcr100.c
dlls/msvcr100/msvcr100.c
+2
-30
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+2
-2
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+2
-2
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
file.c
dlls/msvcrt/file.c
+54
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-0
No files found.
dlls/msvcr100/msvcr100.c
View file @
f99742a5
...
...
@@ -78,8 +78,8 @@ typedef void (__cdecl *free_func_t)(void*);
extern
char
*
__cdecl
__unDName
(
char
*
,
const
char
*
,
int
,
malloc_func_t
,
free_func_t
,
unsigned
short
int
);
/*********************************************************************
*
*
stat64_to_stat32 [internal]
*
*
/
* stat64_to_stat32 [internal]
*/
static
void
stat64_to_stat32
(
const
struct
_stat64
*
buf64
,
struct
_stat32
*
buf
)
{
buf
->
st_dev
=
buf64
->
st_dev
;
...
...
@@ -210,20 +210,6 @@ void* CDECL _recalloc(void* mem, size_t num, size_t size)
}
/*********************************************************************
* _fstat32 (MSVCR100.@)
*/
int
CDECL
_fstat32
(
int
fd
,
struct
_stat32
*
buf
)
{
int
ret
;
struct
_stat64
buf64
;
ret
=
_fstat64
(
fd
,
&
buf64
);
if
(
!
ret
)
stat64_to_stat32
(
&
buf64
,
buf
);
return
ret
;
}
/*********************************************************************
* _stat32 (MSVCR100.@)
*/
int
CDECL
_stat32
(
const
char
*
path
,
struct
_stat32
*
buf
)
...
...
@@ -310,20 +296,6 @@ static void stat64_to_stat64i32(const struct _stat64 *buf64, struct _stat64i32 *
}
/*********************************************************************
* _fstat64i32 (MSVCR100.@)
*/
int
CDECL
_fstat64i32
(
int
fd
,
struct
_stat64i32
*
buf
)
{
int
ret
;
struct
_stat64
buf64
;
ret
=
_fstat64
(
fd
,
&
buf64
);
if
(
!
ret
)
stat64_to_stat64i32
(
&
buf64
,
buf
);
return
ret
;
}
/*********************************************************************
* _stat64i32 (MSVCR100.@)
*/
int
CDECL
_stat64i32
(
const
char
*
path
,
struct
_stat64i32
*
buf
)
...
...
dlls/msvcr100/msvcr100.spec
View file @
f99742a5
...
...
@@ -841,10 +841,10 @@
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ cdecl _fstat32(long ptr)
@ cdecl _fstat32(long ptr)
msvcrt._fstat32
@ stub _fstat32i64
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr)
@ cdecl _fstat64i32(long ptr)
msvcrt._fstat64i32
@ stub _ftell_nolock
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
@ stub _ftelli64_nolock
...
...
dlls/msvcr110/msvcr110.spec
View file @
f99742a5
...
...
@@ -1193,10 +1193,10 @@
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ cdecl _fstat32(long ptr) msvcr
100
._fstat32
@ cdecl _fstat32(long ptr) msvcr
t
._fstat32
@ stub _fstat32i64
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr) msvcr
100
._fstat64i32
@ cdecl _fstat64i32(long ptr) msvcr
t
._fstat64i32
@ stub _ftell_nolock
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
@ stub _ftelli64_nolock
...
...
dlls/msvcr80/msvcr80.spec
View file @
f99742a5
...
...
@@ -507,10 +507,10 @@
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ cdecl _fstat32(long ptr) msvcr
100
._fstat32
@ cdecl _fstat32(long ptr) msvcr
t
._fstat32
@ stub _fstat32i64
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr) msvcr
100
._fstat64i32
@ cdecl _fstat64i32(long ptr) msvcr
t
._fstat64i32
@ stub _ftell_nolock
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
@ stub _ftelli64_nolock
...
...
dlls/msvcr90/msvcr90.spec
View file @
f99742a5
...
...
@@ -489,10 +489,10 @@
@ cdecl _fseeki64(ptr int64 long) msvcrt._fseeki64
@ stub _fseeki64_nolock
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ cdecl _fstat32(long ptr) msvcr
100
._fstat32
@ cdecl _fstat32(long ptr) msvcr
t
._fstat32
@ stub _fstat32i64
@ cdecl _fstat64(long ptr) msvcrt._fstat64
@ cdecl _fstat64i32(long ptr) msvcr
100
._fstat64i32
@ cdecl _fstat64i32(long ptr) msvcr
t
._fstat64i32
@ stub _ftell_nolock
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
@ stub _ftelli64_nolock
...
...
dlls/msvcrt/file.c
View file @
f99742a5
...
...
@@ -177,6 +177,36 @@ static void msvcrt_stat64_to_stati64(const struct MSVCRT__stat64 *buf64, struct
buf
->
st_ctime
=
buf64
->
st_ctime
;
}
static
void
msvcrt_stat64_to_stat32
(
const
struct
MSVCRT__stat64
*
buf64
,
struct
MSVCRT__stat32
*
buf
)
{
buf
->
st_dev
=
buf64
->
st_dev
;
buf
->
st_ino
=
buf64
->
st_ino
;
buf
->
st_mode
=
buf64
->
st_mode
;
buf
->
st_nlink
=
buf64
->
st_nlink
;
buf
->
st_uid
=
buf64
->
st_uid
;
buf
->
st_gid
=
buf64
->
st_gid
;
buf
->
st_rdev
=
buf64
->
st_rdev
;
buf
->
st_size
=
buf64
->
st_size
;
buf
->
st_atime
=
buf64
->
st_atime
;
buf
->
st_mtime
=
buf64
->
st_mtime
;
buf
->
st_ctime
=
buf64
->
st_ctime
;
}
static
void
msvcrt_stat64_to_stat64i32
(
const
struct
MSVCRT__stat64
*
buf64
,
struct
MSVCRT__stat64i32
*
buf
)
{
buf
->
st_dev
=
buf64
->
st_dev
;
buf
->
st_ino
=
buf64
->
st_ino
;
buf
->
st_mode
=
buf64
->
st_mode
;
buf
->
st_nlink
=
buf64
->
st_nlink
;
buf
->
st_uid
=
buf64
->
st_uid
;
buf
->
st_gid
=
buf64
->
st_gid
;
buf
->
st_rdev
=
buf64
->
st_rdev
;
buf
->
st_size
=
buf64
->
st_size
;
buf
->
st_atime
=
buf64
->
st_atime
;
buf
->
st_mtime
=
buf64
->
st_mtime
;
buf
->
st_ctime
=
buf64
->
st_ctime
;
}
static
void
time_to_filetime
(
MSVCRT___time64_t
time
,
FILETIME
*
ft
)
{
/* 1601 to 1970 is 369 years plus 89 leap days */
...
...
@@ -1558,6 +1588,30 @@ int CDECL MSVCRT__fstat(int fd, struct MSVCRT__stat* buf)
return
ret
;
}
/* _fstat32 - not exported in native msvcrt */
int
CDECL
_fstat32
(
int
fd
,
struct
MSVCRT__stat32
*
buf
)
{
int
ret
;
struct
MSVCRT__stat64
buf64
;
ret
=
MSVCRT__fstat64
(
fd
,
&
buf64
);
if
(
!
ret
)
msvcrt_stat64_to_stat32
(
&
buf64
,
buf
);
return
ret
;
}
/* _fstat64i32 - not exported in native msvcrt */
int
CDECL
_fstat64i32
(
int
fd
,
struct
MSVCRT__stat64i32
*
buf
)
{
int
ret
;
struct
MSVCRT__stat64
buf64
;
ret
=
MSVCRT__fstat64
(
fd
,
&
buf64
);
if
(
!
ret
)
msvcrt_stat64_to_stat64i32
(
&
buf64
,
buf
);
return
ret
;
}
/*********************************************************************
* _futime64 (MSVCRT.@)
*/
...
...
dlls/msvcrt/msvcrt.spec
View file @
f99742a5
...
...
@@ -1532,3 +1532,5 @@
@ cdecl _set_printf_count_output(long) MSVCRT__set_printf_count_output
@ cdecl _getptd()
@ cdecl fread_s(ptr long long long ptr)
@ cdecl _fstat32(long ptr)
@ cdecl _fstat64i32(long ptr)
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