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
32ffc7cb
Commit
32ffc7cb
authored
Oct 30, 2006
by
Louis. Lenders
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add stub for _setmaxstdio + tiny test.
parent
eb7b1f4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
file.c
dlls/msvcrt/file.c
+14
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
file.c
dlls/msvcrt/tests/file.c
+7
-0
No files found.
dlls/msvcrt/file.c
View file @
32ffc7cb
...
...
@@ -3090,6 +3090,20 @@ int CDECL _getmaxstdio(void)
}
/*********************************************************************
* _setmaxstdio_ (MSVCRT.@)
*/
int
CDECL
_setmaxstdio
(
int
newmax
)
{
int
res
;
if
(
newmax
>
2048
)
res
=
-
1
;
else
res
=
newmax
;
FIXME
(
"stub: setting new maximum for number of simultaneously open files not implemented,returning %d
\n
"
,
res
);
return
res
;
}
/*********************************************************************
* __pioinfo (MSVCRT.@)
* FIXME: see MSVCRT_MAX_FILES define.
*/
...
...
dlls/msvcrt/msvcrt.spec
View file @
32ffc7cb
...
...
@@ -431,7 +431,7 @@
@ cdecl _seterrormode(long)
@ cdecl -i386 -norelay _setjmp(ptr) MSVCRT__setjmp
@ cdecl -i386 -norelay _setjmp3(ptr long) MSVCRT__setjmp3
@
stub _setmaxstdio #
(long)
@
cdecl _setmaxstdio
(long)
@ cdecl _setmbcp(long)
@ cdecl _setmode(long long)
@ stub _setsystime #(ptr long)
...
...
dlls/msvcrt/tests/file.c
View file @
32ffc7cb
...
...
@@ -788,6 +788,12 @@ static void test_get_osfhandle(void)
_unlink
(
fname
);
}
static
void
test_setmaxstdio
(
void
)
{
ok
(
2048
==
_setmaxstdio
(
2048
),
"_setmaxstdio returned %d instead of 2048
\n
"
,
_setmaxstdio
(
2048
));
ok
(
-
1
==
_setmaxstdio
(
2049
),
"_setmaxstdio returned %d instead of -1
\n
"
,
_setmaxstdio
(
2049
));
}
START_TEST
(
file
)
{
int
arg_c
;
...
...
@@ -818,4 +824,5 @@ START_TEST(file)
test_file_put_get
();
test_tmpnam
();
test_get_osfhandle
();
test_setmaxstdio
();
}
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