Revision d2bfb39a osdep.h
b/osdep.h | ||
---|---|---|
22 | 22 |
extern void __longjmp(jmp_buf env, int val); |
23 | 23 |
#define longjmp __longjmp |
24 | 24 |
|
25 |
#include <signal.h> |
|
26 |
|
|
27 |
/* NOTE: it works only because the glibc sigset_t is >= kernel sigset_t */ |
|
28 |
struct qemu_sigaction { |
|
29 |
union { |
|
30 |
void (*_sa_handler)(int); |
|
31 |
void (*_sa_sigaction)(int, struct siginfo *, void *); |
|
32 |
} _u; |
|
33 |
unsigned long sa_flags; |
|
34 |
void (*sa_restorer)(void); |
|
35 |
sigset_t sa_mask; /* mask last for extensibility */ |
|
36 |
}; |
|
37 |
|
|
38 |
int qemu_sigaction(int signum, const struct qemu_sigaction *act, |
|
39 |
struct qemu_sigaction *oldact); |
|
40 |
|
|
41 |
#undef sigaction |
|
42 |
#undef sa_handler |
|
43 |
#undef sa_sigaction |
|
44 |
#define sigaction qemu_sigaction |
|
45 |
#define sa_handler _u._sa_handler |
|
46 |
#define sa_sigaction _u._sa_sigaction |
|
47 |
|
|
25 | 48 |
#endif |
26 | 49 |
|
27 | 50 |
#endif |
Also available in: Unified diff