1------------------------------------------------------------------------------
2--                                                                          --
3--                 GNAT 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--          Copyright (C) 1997-2011, Free Software Foundation, Inc.         --
10--                                                                          --
11-- GNARL is free software; you can  redistribute it  and/or modify it under --
12-- terms of the  GNU General Public License as published  by the Free Soft- --
13-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16-- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17--                                                                          --
18-- As a special exception under Section 7 of GPL version 3, you are granted --
19-- additional permissions described in the GCC Runtime Library Exception,   --
20-- version 3.1, as published by the Free Software Foundation.               --
21--                                                                          --
22-- You should have received a copy of the GNU General Public License and    --
23-- a copy of the GCC Runtime Library Exception along with this program;     --
24-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25-- <http://www.gnu.org/licenses/>.                                          --
26--                                                                          --
27-- GNARL was developed by the GNARL team at Florida State University.       --
28-- Extensive contributions were provided by Ada Core Technologies, Inc.     --
29--                                                                          --
30------------------------------------------------------------------------------
31
32--  This is a NT (native) version of this package
33
34--  This target-dependent package spec contains names of interrupts supported
35--  by the local system.
36
37with System.OS_Interface;
38
39package Ada.Interrupts.Names is
40
41   --  All identifiers in this unit are implementation defined
42
43   pragma Implementation_Defined;
44
45   --  Beware that the mapping of names to signals may be many-to-one. There
46   --  may be aliases. Also, for all signal names that are not supported on the
47   --  current system the value of the corresponding constant will be zero.
48
49   SIGINT  : constant Interrupt_ID :=  -- interrupt (rubout)
50               System.OS_Interface.SIGINT;
51
52   SIGILL  : constant Interrupt_ID :=  -- illegal instruction (not reset)
53               System.OS_Interface.SIGILL;
54
55   SIGABRT : constant Interrupt_ID :=  -- used by abort (use SIGIOT in future)
56               System.OS_Interface.SIGABRT;
57
58   SIGFPE  : constant Interrupt_ID :=  -- floating point exception
59               System.OS_Interface.SIGFPE;
60
61   SIGSEGV : constant Interrupt_ID :=  -- segmentation violation
62               System.OS_Interface.SIGSEGV;
63
64   SIGTERM : constant Interrupt_ID :=  -- software termination signal from kill
65               System.OS_Interface.SIGTERM;
66
67end Ada.Interrupts.Names;
68