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
d534e1f3
Commit
d534e1f3
authored
Oct 05, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Added basic_filebuf::open implementation.
parent
66d35c40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
8 deletions
+112
-8
ios.c
dlls/msvcp60/ios.c
+104
-0
msvcp60.spec
dlls/msvcp60/msvcp60.spec
+8
-8
No files found.
dlls/msvcp60/ios.c
View file @
d534e1f3
...
...
@@ -2491,6 +2491,58 @@ FILE* __cdecl ___Fiopen(const char *name, int mode)
return
_Fiopen
(
name
,
mode
,
_SH_DENYNO
);
}
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
static
basic_filebuf_char
*
basic_filebuf_char_open_wchar
(
basic_filebuf_char
*
this
,
const
wchar_t
*
name
,
int
mode
,
int
prot
)
{
FILE
*
f
=
NULL
;
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
debugstr_w
(
name
),
mode
,
prot
);
if
(
basic_filebuf_char_is_open
(
this
))
return
NULL
;
if
(
!
(
f
=
_Fiopen_wchar
(
name
,
mode
,
prot
)))
return
NULL
;
basic_filebuf_char__Init
(
this
,
f
,
INITFL_open
);
basic_filebuf_char__Initcvt
(
this
,
codecvt_char_use_facet
(
this
->
base
.
loc
));
return
this
;
}
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
static
basic_filebuf_char
*
basic_filebuf_char_open
(
basic_filebuf_char
*
this
,
const
char
*
name
,
int
mode
,
int
prot
)
{
wchar_t
nameW
[
FILENAME_MAX
];
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
name
,
mode
,
prot
);
if
(
mbstowcs_s
(
NULL
,
nameW
,
FILENAME_MAX
,
name
,
FILENAME_MAX
-
1
)
!=
0
)
return
NULL
;
return
basic_filebuf_char_open_wchar
(
this
,
nameW
,
mode
,
prot
);
}
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
DEFINE_THISCALL_WRAPPER
(
basic_filebuf_char_open_mode_old
,
12
)
basic_filebuf_char
*
__thiscall
basic_filebuf_char_open_mode_old
(
basic_filebuf_char
*
this
,
const
char
*
name
,
short
mode
)
{
TRACE
(
"(%p %p %d)
\n
"
,
this
,
name
,
mode
);
return
basic_filebuf_char_open
(
this
,
name
,
mode
,
_SH_DENYNO
);
}
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
/* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
DEFINE_THISCALL_WRAPPER
(
basic_filebuf_char_open_mode
,
12
)
basic_filebuf_char
*
__thiscall
basic_filebuf_char_open_mode
(
basic_filebuf_char
*
this
,
const
char
*
name
,
int
mode
)
{
TRACE
(
"(%p %p %d)
\n
"
,
this
,
name
,
mode
);
return
basic_filebuf_char_open
(
this
,
name
,
mode
,
_SH_DENYNO
);
}
/* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
/* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
DEFINE_THISCALL_WRAPPER
(
basic_filebuf_char_overflow
,
8
)
...
...
@@ -2955,6 +3007,58 @@ MSVCP_bool __thiscall basic_filebuf_wchar_is_open(const basic_filebuf_wchar *thi
return
this
->
file
!=
NULL
;
}
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
static
basic_filebuf_wchar
*
basic_filebuf_wchar_open_wchar
(
basic_filebuf_wchar
*
this
,
const
wchar_t
*
name
,
int
mode
,
int
prot
)
{
FILE
*
f
=
NULL
;
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
debugstr_w
(
name
),
mode
,
prot
);
if
(
basic_filebuf_wchar_is_open
(
this
))
return
NULL
;
if
(
!
(
f
=
_Fiopen_wchar
(
name
,
mode
,
prot
)))
return
NULL
;
basic_filebuf_wchar__Init
(
this
,
f
,
INITFL_open
);
basic_filebuf_wchar__Initcvt
(
this
,
codecvt_wchar_use_facet
(
this
->
base
.
loc
));
return
this
;
}
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
/* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
static
basic_filebuf_wchar
*
basic_filebuf_wchar_open
(
basic_filebuf_wchar
*
this
,
const
char
*
name
,
int
mode
,
int
prot
)
{
wchar_t
nameW
[
FILENAME_MAX
];
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
name
,
mode
,
prot
);
if
(
mbstowcs_s
(
NULL
,
nameW
,
FILENAME_MAX
,
name
,
FILENAME_MAX
-
1
)
!=
0
)
return
NULL
;
return
basic_filebuf_wchar_open_wchar
(
this
,
nameW
,
mode
,
prot
);
}
/* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
/* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
DEFINE_THISCALL_WRAPPER
(
basic_filebuf_wchar_open_mode_old
,
12
)
basic_filebuf_wchar
*
__thiscall
basic_filebuf_wchar_open_mode_old
(
basic_filebuf_wchar
*
this
,
const
char
*
name
,
short
mode
)
{
TRACE
(
"(%p %p %d)
\n
"
,
this
,
name
,
mode
);
return
basic_filebuf_wchar_open
(
this
,
name
,
mode
,
_SH_DENYNO
);
}
/* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
/* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
DEFINE_THISCALL_WRAPPER
(
basic_filebuf_wchar_open_mode
,
12
)
basic_filebuf_wchar
*
__thiscall
basic_filebuf_wchar_open_mode
(
basic_filebuf_wchar
*
this
,
const
char
*
name
,
int
mode
)
{
TRACE
(
"(%p %p %d)
\n
"
,
this
,
name
,
mode
);
return
basic_filebuf_wchar_open
(
this
,
name
,
mode
,
_SH_DENYNO
);
}
/* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
/* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
/* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
...
...
dlls/msvcp60/msvcp60.spec
View file @
d534e1f3
...
...
@@ -3498,14 +3498,14 @@
@ extern -arch=win64 ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2_KB basic_string_char_npos
@ extern -arch=win32 ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB basic_string_wchar_npos
@ extern -arch=win64 ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2_KB basic_string_wchar_npos
@
stub -arch=win32 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z
@
stub -arch=win64 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z
@
stub -arch=win32 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z
@
stub -arch=win64 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z
@
stub -arch=win32 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z
@
stub -arch=win64 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z
@
stub -arch=win32 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z
@
stub -arch=win64 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z
@
thiscall -arch=win32 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z(ptr str long) basic_filebuf_char_open_mode_old
@
cdecl -arch=win64 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z(ptr str long) basic_filebuf_char_open_mode_old
@
thiscall -arch=win32 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z(ptr str long) basic_filebuf_char_open_mode
@
cdecl -arch=win64 ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z(ptr str long) basic_filebuf_char_open_mode
@
thiscall -arch=win32 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z(ptr str long) basic_filebuf_wchar_open_mode_old
@
cdecl -arch=win64 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z(ptr str long) basic_filebuf_wchar_open_mode_old
@
thiscall -arch=win32 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z(ptr str long) basic_filebuf_wchar_open_mode
@
cdecl -arch=win64 ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z(ptr str long) basic_filebuf_wchar_open_mode
@ stub -arch=win32 ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z
@ stub -arch=win64 ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z
@ stub -arch=win32 ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z
...
...
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