Define the new sigcontext structure.
This commit is contained in:
parent
6385066c76
commit
7b32475079
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: signal.h,v 1.6 1998/05/25 20:59:03 kleink Exp $ */
|
||||
/* $NetBSD: signal.h,v 1.7 1998/09/16 23:14:15 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
|
||||
|
@ -54,9 +54,10 @@ typedef int sig_atomic_t;
|
|||
* to the handler to allow it to restore state properly if
|
||||
* a non-standard exit is performed.
|
||||
*/
|
||||
struct sigcontext {
|
||||
#if defined(__LIBC12_SOURCE) || defined(_KERNEL)
|
||||
struct sigcontext13 {
|
||||
int sc_onstack; /* sigstack state to restore */
|
||||
int sc_mask; /* signal mask to restore */
|
||||
int sc_mask; /* signal mask to restore (old style) */
|
||||
int sc_sp; /* sp to restore */
|
||||
int sc_fp; /* fp to restore */
|
||||
int sc_sb; /* sb to restore */
|
||||
|
@ -64,6 +65,19 @@ struct sigcontext {
|
|||
int sc_ps; /* psl to restore */
|
||||
int sc_reg[8]; /* The registers */
|
||||
};
|
||||
#endif /* __LIBC12_SOURCE__ || _KERNEL */
|
||||
|
||||
struct sigcontext {
|
||||
int sc_onstack; /* sigstack state to restore */
|
||||
int __sc_mask13; /* signal mask to restore (old style) */
|
||||
int sc_sp; /* sp to restore */
|
||||
int sc_fp; /* fp to restore */
|
||||
int sc_sb; /* sb to restore */
|
||||
int sc_pc; /* pc to restore */
|
||||
int sc_ps; /* psl to restore */
|
||||
int sc_reg[8]; /* The registers */
|
||||
sigset_t sc_mask; /* signal mask to restore (new style) */
|
||||
};
|
||||
|
||||
#endif /* !_ANSI_SOURCE && !_POSIX_C_SOURCE && !_XOPEN_SOURCE */
|
||||
#endif /* !_MACHINE_SIGNAL_H_ */
|
||||
|
|
Loading…
Reference in New Issue