Commit 80a740f0 authored by Alexandre Julliard's avatar Alexandre Julliard

Added ERROR_sig.

parent 9c819874
...@@ -37,8 +37,8 @@ typedef struct ...@@ -37,8 +37,8 @@ typedef struct
} SIGCONTEXT; } SIGCONTEXT;
#define __HAVE_SIGCONTEXT #define __HAVE_SIGCONTEXT
#define HANDLER_DEF(name) void name (int signal, SIGCONTEXT context) #define HANDLER_DEF(name) void name (int signal, SIGCONTEXT __context)
#define HANDLER_CONTEXT (&context) #define HANDLER_CONTEXT (&__context)
#endif /* linux */ #endif /* linux */
...@@ -61,8 +61,8 @@ typedef struct ...@@ -61,8 +61,8 @@ typedef struct
typedef struct trapframe SIGCONTEXT; typedef struct trapframe SIGCONTEXT;
#define __HAVE_SIGCONTEXT #define __HAVE_SIGCONTEXT
#define HANDLER_DEF(name) void name(int signal, int code, SIGCONTEXT *context) #define HANDLER_DEF(name) void name(int signal, int code, SIGCONTEXT *__context)
#define HANDLER_CONTEXT context #define HANDLER_CONTEXT __context
#define EFL_sig(context) ((context)->tf_eflags) #define EFL_sig(context) ((context)->tf_eflags)
...@@ -77,8 +77,8 @@ typedef struct trapframe SIGCONTEXT; ...@@ -77,8 +77,8 @@ typedef struct trapframe SIGCONTEXT;
typedef struct sigcontext SIGCONTEXT; typedef struct sigcontext SIGCONTEXT;
#define __HAVE_SIGCONTEXT #define __HAVE_SIGCONTEXT
#define HANDLER_DEF(name) void name(int signal, int code, SIGCONTEXT *context) #define HANDLER_DEF(name) void name(int signal, int code, SIGCONTEXT *__context)
#define HANDLER_CONTEXT context #define HANDLER_CONTEXT __context
#endif /* FreeBSD */ #endif /* FreeBSD */
...@@ -92,8 +92,8 @@ typedef struct sigcontext SIGCONTEXT; ...@@ -92,8 +92,8 @@ typedef struct sigcontext SIGCONTEXT;
typedef struct ucontext SIGCONTEXT; typedef struct ucontext SIGCONTEXT;
#define __HAVE_SIGCONTEXT #define __HAVE_SIGCONTEXT
#define HANDLER_DEF(name) void name(int signal, void *siginfo, SIGCONTEXT *context) #define HANDLER_DEF(name) void name(int signal, void *siginfo, SIGCONTEXT *__context)
#define HANDLER_CONTEXT context #define HANDLER_CONTEXT __context
#endif /* svr4 || SCO_DS */ #endif /* svr4 || SCO_DS */
...@@ -158,6 +158,7 @@ typedef struct _CONTEXT /* Note 1 */ ...@@ -158,6 +158,7 @@ typedef struct _CONTEXT /* Note 1 */
#define GS_sig(context) ((context)->sc_gs) #define GS_sig(context) ((context)->sc_gs)
#define CR2_sig(context) ((context)->cr2) #define CR2_sig(context) ((context)->cr2)
#define TRAP_sig(context) ((context)->sc_trapno) #define TRAP_sig(context) ((context)->sc_trapno)
#define ERROR_sig(context) ((context)->sc_err)
#endif #endif
#ifndef __FreeBSD__ #ifndef __FreeBSD__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment