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
bb5a20c6
Commit
bb5a20c6
authored
Feb 08, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implemented the raise function.
parent
9f309b32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
except.c
dlls/msvcrt/except.c
+34
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/except.c
View file @
bb5a20c6
...
...
@@ -544,6 +544,40 @@ MSVCRT___sighandler_t CDECL MSVCRT_signal(int sig, MSVCRT___sighandler_t func)
}
/*********************************************************************
* raise (MSVCRT.@)
*/
int
CDECL
MSVCRT_raise
(
int
sig
)
{
MSVCRT___sighandler_t
handler
;
TRACE
(
"(%d)
\n
"
,
sig
);
switch
(
sig
)
{
case
MSVCRT_SIGABRT
:
case
MSVCRT_SIGFPE
:
case
MSVCRT_SIGILL
:
case
MSVCRT_SIGSEGV
:
case
MSVCRT_SIGINT
:
case
MSVCRT_SIGTERM
:
handler
=
sighandlers
[
sig
];
if
(
handler
==
MSVCRT_SIG_DFL
)
MSVCRT__exit
(
3
);
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
sighandlers
[
sig
]
=
MSVCRT_SIG_DFL
;
if
(
sig
==
MSVCRT_SIGFPE
)
((
float_handler
)
handler
)(
sig
,
_FPE_EXPLICITGEN
);
else
handler
(
sig
);
}
break
;
default:
return
-
1
;
}
return
0
;
}
/*********************************************************************
* _XcptFilter (MSVCRT.@)
*/
int
CDECL
_XcptFilter
(
NTSTATUS
ex
,
PEXCEPTION_POINTERS
ptr
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
bb5a20c6
...
...
@@ -686,7 +686,7 @@
@ cdecl putwc(long ptr) MSVCRT_fputwc
@ cdecl putwchar(long) _fputwchar
@ cdecl qsort(ptr long long ptr) ntdll.qsort
@
stub raise #(long)
@
cdecl raise(long) MSVCRT_raise
@ cdecl rand() MSVCRT_rand
@ cdecl realloc(ptr long) MSVCRT_realloc
@ cdecl remove(str) MSVCRT_remove
...
...
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