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
198b8f73
Commit
198b8f73
authored
Jan 16, 2009
by
Austin English
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for NetBSD.
parent
0509d021
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+37
-1
No files found.
dlls/ntdll/signal_i386.c
View file @
198b8f73
...
@@ -199,7 +199,7 @@ typedef struct trapframe SIGCONTEXT;
...
@@ -199,7 +199,7 @@ typedef struct trapframe SIGCONTEXT;
#endif
/* bsdi */
#endif
/* bsdi */
#if defined(__
NetBSD__) || defined(__
FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
typedef
struct
sigcontext
SIGCONTEXT
;
typedef
struct
sigcontext
SIGCONTEXT
;
...
@@ -332,6 +332,42 @@ typedef ucontext_t SIGCONTEXT;
...
@@ -332,6 +332,42 @@ typedef ucontext_t SIGCONTEXT;
#endif
/* __APPLE__ */
#endif
/* __APPLE__ */
#if defined(__NetBSD__)
# include <sys/ucontext.h>
# include <sys/types.h>
# include <signal.h>
typedef
ucontext_t
SIGCONTEXT
;
#define EAX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EAX])
#define EBX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EBX])
#define ECX_sig(context) ((context)->uc_mcontext.__gregs[_REG_ECX])
#define EDX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EDX])
#define ESI_sig(context) ((context)->uc_mcontext.__gregs[_REG_ESI])
#define EDI_sig(context) ((context)->uc_mcontext.__gregs[_REG_EDI])
#define EBP_sig(context) ((context)->uc_mcontext.__gregs[_REG_EBP])
#define ESP_sig(context) _UC_MACHINE_SP(context)
#define CS_sig(context) ((context)->uc_mcontext.__gregs[_REG_CS])
#define DS_sig(context) ((context)->uc_mcontext.__gregs[_REG_DS])
#define ES_sig(context) ((context)->uc_mcontext.__gregs[_REG_ES])
#define SS_sig(context) ((context)->uc_mcontext.__gregs[_REG_SS])
#define FS_sig(context) ((context)->uc_mcontext.__gregs[_REG_FS])
#define GS_sig(context) ((context)->uc_mcontext.__gregs[_REG_GS])
#define EFL_sig(context) ((context)->uc_mcontext.__gregs[_REG_EFL])
#define EIP_sig(context) _UC_MACHINE_PC(context)
#define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO])
#define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR])
#define FPU_sig(context) NULL
#define FPUX_sig(context) ((XMM_SAVE_AREA32 *)&((context)->uc_mcontext.__fpregs))
#define T_MCHK T_MCA
#define T_XMMFLT T_XMM
#endif
/* __NetBSD__ */
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
typedef
int
(
*
wine_signal_handler
)(
unsigned
int
sig
);
typedef
int
(
*
wine_signal_handler
)(
unsigned
int
sig
);
...
...
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