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 #define SIGINFO 29
42 #define SIGUSR1 30
43 #define SIGUSR2 31
44
45 #define SIGPOLL SIGIO 46
47 /* 48 * sa_flags values: SA_STACK is not currently supported, but will allow the 49 * usage of signal stacks by using the (now obsolete) sa_restorer field in 50 * the sigaction structure as a stack pointer. This is now possible due to 51 * the changes in signal handling. LBT 010493. 52 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 53 * SA_RESTART flag to get restarting signals (which were the default long ago) 54 */ 55 #defineSA_NOCLDSTOP 0x00000004
56
57 #define SA_STACK 0x00000001
58 #defineSA_RESTART 0x00000002
59 #defineSA_INTERRUPT 0x20000000
60 #defineSA_NOMASK 0x00000008
61 #defineSA_ONESHOT 0x00000010
62
63 #defineSIG_BLOCK 1 /* for blocking signals */ 64 #defineSIG_UNBLOCK 2 /* for unblocking signals */ 65 #defineSIG_SETMASK 3 /* for setting the signal mask */ 66
67 /* Type of a signal handler. */ 68 typedefvoid (*__sighandler_t)(int);
69
70 #defineSIG_DFL ((__sighandler_t)0) /* default signal handling */ 71 #defineSIG_IGN ((__sighandler_t)1) /* ignore signal */ 72 #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 73
74 structsigaction{ 75 __sighandler_tsa_handler;
76 sigset_tsa_mask;
77 unsignedintsa_flags;
78 };
79
80 #ifdef__KERNEL__ 81
82 structsigcontext_struct{ 83 /* 84 * what should we have here? I'd probably better use the same 85 * stack layout as OSF/1, just in case we ever want to try 86 * running their binaries.. 87 * 88 * This is the basic layout, but I don't know if we'll ever 89 * actually fill in all the values.. 90 */ 91 long sc_onstack;
92 longsc_mask;
93 longsc_pc;
94 longsc_ps;
95 longsc_regs[32];
96 long sc_ownedfp;
97 longsc_fpregs[32];
98 unsignedlong sc_fpcr;
99 unsignedlong sc_fp_control;
100 unsignedlong sc_reserved1, sc_reserved2;
101 unsignedlong sc_ssize;
102 char * sc_sbase;
103 unsignedlong sc_traparg_a0;
104 unsignedlong sc_traparg_a1;
105 unsignedlong sc_traparg_a2;
106 unsignedlong sc_fp_trap_pc;
107 unsignedlong sc_fp_trigger_sum;
108 unsignedlong sc_fp_trigger_inst;
109 unsignedlongsc_retcode[2];
110 };
111
112 #endif 113
114 #endif