No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / alpha / include / signal.h
blob4a3adc439a9dd3aa17176d68de929482598dda28
1 /* $NetBSD: signal.h,v 1.14 2005/12/11 12:16:16 christos Exp $ */
3 /*
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
5 * All rights reserved.
7 * Author: Chris G. Demetriou
8 *
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 #ifndef _ALPHA_SIGNAL_H_
31 #define _ALPHA_SIGNAL_H_
33 #include <sys/featuretest.h>
35 typedef long sig_atomic_t;
37 #ifdef _KERNEL_OPT
38 #include "opt_compat_netbsd.h"
39 #include "opt_compat_osf1.h"
40 #endif
43 * Information pushed on stack when a signal is delivered.
44 * This is used by the kernel to restore state following
45 * execution of the signal handler. It is also made available
46 * to the handler to allow it to restore state properly if
47 * a non-standard exit is performed.
49 * Note that sc_regs[] and sc_fpregs[]+sc_fpcr are inline
50 * representations of 'struct reg' and 'struct fpreg', respectively.
52 #if defined(_KERNEL) && (defined(COMPAT_13) || defined(COMPAT_OSF1))
53 struct sigcontext13 {
54 long sc_onstack; /* sigstack state to restore */
55 long sc_mask; /* signal mask to restore (old style) */
56 long sc_pc; /* pc to restore */
57 long sc_ps; /* ps to restore */
58 unsigned long sc_regs[32]; /* integer register set (see above) */
59 #define sc_sp sc_regs[R_SP]
60 long sc_ownedfp; /* fp has been used */
61 unsigned long sc_fpregs[32]; /* FP register set (see above) */
62 unsigned long sc_fpcr; /* FP control register (see above) */
63 unsigned long sc_fp_control; /* FP software control word */
64 long sc_reserved[2]; /* XXX */
65 long sc_xxx[8]; /* XXX */
67 #endif /* _KERNEL && (COMPAT_13 || COMPAT_OSF1) */
69 #if defined(_LIBC) || (defined(_KERNEL) && (defined(COMPAT_16) || defined(COMPAT_OSF1)))
70 struct sigcontext {
71 long sc_onstack; /* sigstack state to restore */
72 long __sc_mask13; /* signal mask to restore (old style) */
73 long sc_pc; /* pc to restore */
74 long sc_ps; /* ps to restore */
75 unsigned long sc_regs[32]; /* integer register set (see above) */
76 #define sc_sp sc_regs[R_SP]
77 long sc_ownedfp; /* fp has been used */
78 unsigned long sc_fpregs[32]; /* FP register set (see above) */
79 unsigned long sc_fpcr; /* FP control register (see above) */
80 unsigned long sc_fp_control; /* FP software control word */
81 long sc_reserved[2]; /* XXX */
82 long sc_xxx[8]; /* XXX */
83 sigset_t sc_mask; /* signal mask to restore (new style) */
85 #endif /* _LIBC || _KERNEL */
87 #endif /* !_ALPHA_SIGNAL_H_*/