Annotation of sys/arch/alpha/include/signal.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: signal.h,v 1.6 2006/12/11 20:53:23 deraadt Exp $ */
2: /* $NetBSD: signal.h,v 1.2 1995/02/16 03:08:08 cgd Exp $ */
3:
4: /*
5: * Copyright (c) 1994, 1995 Carnegie-Mellon University.
6: * All rights reserved.
7: *
8: * Author: Chris G. Demetriou
9: *
10: * Permission to use, copy, modify and distribute this software and
11: * its documentation is hereby granted, provided that both the copyright
12: * notice and this permission notice appear in all copies of the
13: * software, derivative works or modified versions, and any portions
14: * thereof, and that both notices appear in supporting documentation.
15: *
16: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18: * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19: *
20: * Carnegie Mellon requests users of this software to return to
21: *
22: * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23: * School of Computer Science
24: * Carnegie Mellon University
25: * Pittsburgh PA 15213-3890
26: *
27: * any improvements or extensions that they make and grant Carnegie the
28: * rights to redistribute these changes.
29: */
30:
31: #ifndef _ALPHA_SIGNAL_H_
32: #define _ALPHA_SIGNAL_H_
33:
34: #include <sys/cdefs.h>
35:
36: typedef int sig_atomic_t;
37:
38: #if __BSD_VISIBLE || __XPG_VISIBLE >= 420
39: /*
40: * Information pushed on stack when a signal is delivered.
41: * This is used by the kernel to restore state following
42: * execution of the signal handler. It is also made available
43: * to the handler to allow it to restore state properly if
44: * a non-standard exit is performed.
45: *
46: * Note that sc_regs[] and sc_fpregs[]+sc_fpcr are inline
47: * representations of 'struct reg' and 'struct fpreg', respectively.
48: */
49: struct sigcontext {
50: long sc_onstack; /* sigstack state to restore */
51: long sc_mask; /* signal mask to restore */
52: long sc_pc; /* pc to restore */
53: long sc_ps; /* ps to restore */
54: unsigned long sc_regs[32]; /* integer register set (see above) */
55: #define sc_sp sc_regs[R_SP]
56: long sc_ownedfp; /* fp has been used */
57: unsigned long sc_fpregs[32]; /* FP register set (see above) */
58: unsigned long sc_fpcr; /* FP control register (see above) */
59: unsigned long sc_fp_control; /* FP software control word */
60: long sc_reserved[2]; /* XXX */
61: long sc_xxx[8]; /* XXX */
62: };
63: #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
64: #endif /* !_ALPHA_SIGNAL_H_*/
CVSweb