Remove some compile time warnings about duplicate definitions.
[official-gcc.git] / gcc / ada / 4zintnam.ads
blob7bb4192aee021cf26406f78f14aab13b3dc0030f
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
4 -- --
5 -- A D A . I N T E R R U P T S . N A M E S --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.3 $ --
10 -- --
11 -- Copyright (C) 1991-2001 Free Software Foundation, Inc. --
12 -- --
13 -- GNARL is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNARL; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
23 -- --
24 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
30 -- --
31 -- GNARL was developed by the GNARL team at Florida State University. It is --
32 -- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
33 -- State University (http://www.gnat.com). --
34 -- --
35 ------------------------------------------------------------------------------
37 -- This is the VxWorks version of this package.
39 -- The following signals are reserved by the run time:
41 -- SIGFPE, SIGILL, SIGSEGV, SIGBUS, SIGABRT
43 -- The pragma Unreserve_All_Interrupts affects the following signal(s):
45 -- none
47 -- This target-dependent package spec contains names of interrupts
48 -- supported by the local system.
50 with System.OS_Interface;
51 with System.VxWorks;
53 package Ada.Interrupts.Names is
55 subtype Hardware_Interrupts is Interrupt_ID
56 range Interrupt_ID'First .. System.OS_Interface.Max_HW_Interrupt;
57 -- Range of values that can be used for hardware interrupts.
59 -- The following constants can be used for software interrupts mapped to
60 -- user-level signals:
62 SIGHUP : constant Interrupt_ID;
63 -- hangup
65 SIGINT : constant Interrupt_ID;
66 -- interrupt
68 SIGQUIT : constant Interrupt_ID;
69 -- quit
71 SIGILL : constant Interrupt_ID;
72 -- illegal instruction (not reset)
74 SIGTRAP : constant Interrupt_ID;
75 -- trace trap (not reset)
77 SIGIOT : constant Interrupt_ID;
78 -- IOT instruction
80 SIGABRT : constant Interrupt_ID;
81 -- used by abort, replace SIGIOT
83 SIGEMT : constant Interrupt_ID;
84 -- EMT instruction
86 SIGFPE : constant Interrupt_ID;
87 -- floating point exception
89 SIGKILL : constant Interrupt_ID;
90 -- kill (cannot be caught or ignored)
92 SIGBUS : constant Interrupt_ID;
93 -- bus error
95 SIGSEGV : constant Interrupt_ID;
96 -- segmentation violation
98 SIGSYS : constant Interrupt_ID;
99 -- bad argument to system call
101 SIGPIPE : constant Interrupt_ID;
102 -- no one to read it
104 SIGALRM : constant Interrupt_ID;
105 -- alarm clock
107 SIGTERM : constant Interrupt_ID;
108 -- software termination signal from kill
110 SIGURG : constant Interrupt_ID;
111 -- urgent condition on IO channel
113 SIGSTOP : constant Interrupt_ID;
114 -- stop (cannot be caught or ignored)
116 SIGTSTP : constant Interrupt_ID;
117 -- user stop requested from tty
119 SIGCONT : constant Interrupt_ID;
120 -- stopped process has been continued
122 SIGCHLD : constant Interrupt_ID;
123 -- child status change
125 SIGTTIN : constant Interrupt_ID;
126 -- background tty read attempted
128 SIGTTOU : constant Interrupt_ID;
129 -- background tty write attempted
131 SIGIO : constant Interrupt_ID;
132 -- input/output possible,
134 SIGXCPU : constant Interrupt_ID;
135 -- CPU time limit exceeded
137 SIGXFSZ : constant Interrupt_ID;
138 -- filesize limit exceeded
140 SIGVTALRM : constant Interrupt_ID;
141 -- virtual timer expired
143 SIGPROF : constant Interrupt_ID;
144 -- profiling timer expired
146 SIGWINCH : constant Interrupt_ID;
147 -- window size change
149 SIGUSR1 : constant Interrupt_ID;
150 -- user defined signal 1
152 SIGUSR2 : constant Interrupt_ID;
153 -- user defined signal 2
155 private
157 Signal_Base : constant := System.VxWorks.Num_HW_Interrupts;
159 SIGHUP : constant Interrupt_ID := 1 + Signal_Base;
160 SIGINT : constant Interrupt_ID := 2 + Signal_Base;
161 SIGQUIT : constant Interrupt_ID := 3 + Signal_Base;
162 SIGILL : constant Interrupt_ID := 4 + Signal_Base;
163 SIGTRAP : constant Interrupt_ID := 5 + Signal_Base;
164 SIGIOT : constant Interrupt_ID := 6 + Signal_Base;
165 SIGABRT : constant Interrupt_ID := 6 + Signal_Base;
166 SIGEMT : constant Interrupt_ID := 7 + Signal_Base;
167 SIGFPE : constant Interrupt_ID := 8 + Signal_Base;
168 SIGKILL : constant Interrupt_ID := 9 + Signal_Base;
169 SIGBUS : constant Interrupt_ID := 10 + Signal_Base;
170 SIGSEGV : constant Interrupt_ID := 11 + Signal_Base;
171 SIGSYS : constant Interrupt_ID := 12 + Signal_Base;
172 SIGPIPE : constant Interrupt_ID := 13 + Signal_Base;
173 SIGALRM : constant Interrupt_ID := 14 + Signal_Base;
174 SIGTERM : constant Interrupt_ID := 15 + Signal_Base;
175 SIGURG : constant Interrupt_ID := 16 + Signal_Base;
176 SIGSTOP : constant Interrupt_ID := 17 + Signal_Base;
177 SIGTSTP : constant Interrupt_ID := 18 + Signal_Base;
178 SIGCONT : constant Interrupt_ID := 19 + Signal_Base;
179 SIGCHLD : constant Interrupt_ID := 20 + Signal_Base;
180 SIGTTIN : constant Interrupt_ID := 21 + Signal_Base;
181 SIGTTOU : constant Interrupt_ID := 22 + Signal_Base;
182 SIGIO : constant Interrupt_ID := 23 + Signal_Base;
183 SIGXCPU : constant Interrupt_ID := 24 + Signal_Base;
184 SIGXFSZ : constant Interrupt_ID := 25 + Signal_Base;
185 SIGVTALRM : constant Interrupt_ID := 26 + Signal_Base;
186 SIGPROF : constant Interrupt_ID := 27 + Signal_Base;
187 SIGWINCH : constant Interrupt_ID := 28 + Signal_Base;
188 SIGUSR1 : constant Interrupt_ID := 30 + Signal_Base;
189 SIGUSR2 : constant Interrupt_ID := 31 + Signal_Base;
191 end Ada.Interrupts.Names;