1 #ifndef_ASMAXP_SIGNAL_H 2 #define_ASMAXP_SIGNAL_H 3
4 typedefunsignedlongsigset_t; /* at least 32 bits */ 5
6 #define_NSIG 32
7 #defineNSIG_NSIG 8
9 /* 10 * Linux/AXP has different signal numbers that Linux/i386: I'm trying 11 * to make it OSF/1 binary compatible, at least for normal binaries. 12 */ 13 #defineSIGHUP 1
14 #defineSIGINT 2
15 #defineSIGQUIT 3
16 #defineSIGILL 4
17 #defineSIGTRAP 5
18 #defineSIGABRT 6
19 #define SIGEMT 7
20 #defineSIGFPE 8
21 #defineSIGKILL 9
22 #defineSIGBUS 10
23 #defineSIGSEGV 11
24 #define SIGSYS 12
25 #defineSIGPIPE 13
26 #defineSIGALRM 14
27 #define SIGTERM 15
28 #defineSIGURG 16
29 #defineSIGSTOP 17
30 #defineSIGTSTP 18
31 #defineSIGCONT 19
32 #defineSIGCHLD 20
33 #defineSIGTTIN 21
34 #defineSIGTTOU 22
35 #defineSIGIO 23
36 #defineSIGXCPU 24
37 #define SIGXFSZ 25
38 #defineSIGVTALRM 26
39 #defineSIGPROF 27
40 #defineSIGWINCH 28
41 #defineSIGINFO 29
42 #define SIGUSR1 30
43 #define SIGUSR2 31
44
45 #define SIGPOLL SIGIO 46 #define SIGPWR SIGINFO 47 #defineSIGIOTSIGABRT 48
49 /* 50 * sa_flags values: SA_STACK is not currently supported, but will allow the 51 * usage of signal stacks by using the (now obsolete) sa_restorer field in 52 * the sigaction structure as a stack pointer. This is now possible due to 53 * the changes in signal handling. LBT 010493. 54 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 55 * SA_RESTART flag to get restarting signals (which were the default long ago) 56 */ 57 #defineSA_NOCLDSTOP 0x00000004
58
59 #define SA_STACK 0x00000001
60 #defineSA_RESTART 0x00000002
61 #defineSA_INTERRUPT 0x20000000
62 #defineSA_NOMASK 0x00000008
63 #defineSA_ONESHOT 0x00000010
64
65 #ifdef__KERNEL__ 66 /* 67 * These values of sa_flags are used only by the kernel as part of the 68 * irq handling routines. 69 * 70 * SA_INTERRUPT is also used by the irq handling routines. 71 */ 72 #defineSA_PROBESA_ONESHOT 73 #defineSA_SAMPLE_RANDOMSA_RESTART 74 #endif 75
76
77 #defineSIG_BLOCK 1 /* for blocking signals */ 78 #defineSIG_UNBLOCK 2 /* for unblocking signals */ 79 #defineSIG_SETMASK 3 /* for setting the signal mask */ 80
81 /* Type of a signal handler. */ 82 typedefvoid (*__sighandler_t)(int);
83
84 #defineSIG_DFL ((__sighandler_t)0) /* default signal handling */ 85 #defineSIG_IGN ((__sighandler_t)1) /* ignore signal */ 86 #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 87
88 structsigaction{ 89 __sighandler_tsa_handler;
90 sigset_tsa_mask;
91 unsignedintsa_flags;
92 };
93
94 #ifdef__KERNEL__ 95 #include <asm/sigcontext.h>
96 #endif 97
98 #endif