Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ba5b0c34
Commit
ba5b0c34
authored
Nov 13, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement freopen_s.
parent
09202ee9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
4 deletions
+23
-4
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
+19
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr100/msvcr100.spec
View file @
ba5b0c34
...
...
@@ -1469,7 +1469,7 @@
@ stub fread_s
@ cdecl free(ptr) msvcrt.free
@ cdecl freopen(str str ptr) msvcrt.freopen
@
stub
freopen_s
@
cdecl freopen_s(ptr str str ptr) msvcrt.
freopen_s
@ cdecl frexp(double ptr) msvcrt.frexp
@ varargs fscanf(ptr str) msvcrt.fscanf
@ varargs fscanf_s(ptr str) msvcrt.fscanf_s
...
...
dlls/msvcr80/msvcr80.spec
View file @
ba5b0c34
...
...
@@ -1325,7 +1325,7 @@
@ stub fread_s
@ cdecl free(ptr) msvcrt.free
@ cdecl freopen(str str ptr) msvcrt.freopen
@
stub
freopen_s
@
cdecl freopen_s(ptr str str ptr) msvcrt.
freopen_s
@ cdecl frexp(double ptr) msvcrt.frexp
@ varargs fscanf(ptr str) msvcrt.fscanf
@ varargs fscanf_s(ptr str) msvcrt.fscanf_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
ba5b0c34
...
...
@@ -1326,7 +1326,7 @@
@ stub fread_s
@ cdecl free(ptr) msvcrt.free
@ cdecl freopen(str str ptr) msvcrt.freopen
@
stub
freopen_s
@
cdecl freopen_s(ptr str str ptr) msvcrt.
freopen_s
@ cdecl frexp(double ptr) msvcrt.frexp
@ varargs fscanf(ptr str) msvcrt.fscanf
@ varargs fscanf_s(ptr str) msvcrt.fscanf_s
...
...
dlls/msvcrt/file.c
View file @
ba5b0c34
...
...
@@ -3300,6 +3300,25 @@ MSVCRT_FILE* CDECL MSVCRT_freopen(const char *path, const char *mode, MSVCRT_FIL
}
/*********************************************************************
* freopen_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_freopen_s
(
MSVCRT_FILE
**
pFile
,
const
char
*
path
,
const
char
*
mode
,
MSVCRT_FILE
*
file
)
{
if
(
!
MSVCRT_CHECK_PMT
(
pFile
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
path
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
mode
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
file
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
*
pFile
=
MSVCRT_freopen
(
path
,
mode
,
file
);
if
(
!*
pFile
)
return
*
MSVCRT__errno
();
return
0
;
}
/*********************************************************************
* fsetpos (MSVCRT.@)
*/
int
CDECL
MSVCRT_fsetpos
(
MSVCRT_FILE
*
file
,
MSVCRT_fpos_t
*
pos
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
ba5b0c34
...
...
@@ -1269,7 +1269,7 @@
@ cdecl fread(ptr long long ptr) MSVCRT_fread
@ cdecl free(ptr) MSVCRT_free
@ cdecl freopen(str str ptr) MSVCRT_freopen
# stub freopen_s(ptr str str ptr)
@ cdecl freopen_s(ptr str str ptr) MSVCRT_freopen_s
@ cdecl frexp(double ptr) MSVCRT_frexp
@ cdecl -arch=x86_64 frexpf(float ptr) MSVCRT_frexpf
@ varargs fscanf(ptr str) MSVCRT_fscanf
...
...
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