source: rtems/c/src/ada/rtems-signal.adb @ 1987020

4.115
Last change on this file since 1987020 was 1987020, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 16, 2011 at 3:52:29 PM

2011-02-16 Joel Sherrill <joel.sherrill@…>

  • ada/Makefile.am, ada/preinstall.am, ada/rtems.adb, ada/rtems.ads: Split RTEMS Ada95 binding into a master package and a child package per Manager. This is better Ada style.
  • ada/rtems-barrier.adb, ada/rtems-barrier.ads, ada/rtems-clock.adb, ada/rtems-clock.ads, ada/rtems-cpu_usage.ads, ada/rtems-debug.adb, ada/rtems-debug.ads, ada/rtems-event.adb, ada/rtems-event.ads, ada/rtems-extension.adb, ada/rtems-extension.ads, ada/rtems-fatal.adb, ada/rtems-fatal.ads, ada/rtems-interrupt.ads, ada/rtems-io.adb, ada/rtems-io.ads, ada/rtems-message_queue.adb, ada/rtems-message_queue.ads, ada/rtems-object.adb, ada/rtems-object.ads, ada/rtems-partition.adb, ada/rtems-partition.ads, ada/rtems-port.adb, ada/rtems-port.ads, ada/rtems-rate_monotonic.adb, ada/rtems-rate_monotonic.ads, ada/rtems-region.adb, ada/rtems-region.ads, ada/rtems-semaphore.adb, ada/rtems-semaphore.ads, ada/rtems-signal.adb, ada/rtems-signal.ads, ada/rtems-stack_checker.ads, ada/rtems-tasks.adb, ada/rtems-tasks.ads, ada/rtems-timer.adb, ada/rtems-timer.ads: New files.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1--
2--  RTEMS / Body
3--
4--  DESCRIPTION:
5--
6--  This package provides the interface to the RTEMS API.
7--
8--
9--  DEPENDENCIES:
10--
11--
12--
13--  COPYRIGHT (c) 1997-2011.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20--  $Id$
21--
22
23package body RTEMS.Signal is
24
25   --
26   -- Signal Manager
27   --
28
29   procedure Catch
30     (ASR_Handler : in RTEMS.ASR_Handler;
31      Mode_Set    : in RTEMS.Mode;
32      Result      : out RTEMS.Status_Codes)
33   is
34      function Catch_Base
35        (ASR_Handler : RTEMS.ASR_Handler;
36         Mode_Set    : RTEMS.Mode)
37         return        RTEMS.Status_Codes;
38      pragma Import (C, Catch_Base, "rtems_signal_catch");
39   begin
40
41      Result := Catch_Base (ASR_Handler, Mode_Set);
42
43   end Catch;
44
45   procedure Send
46     (ID         : in RTEMS.ID;
47      Signal_Set : in RTEMS.Signal_Set;
48      Result     : out RTEMS.Status_Codes)
49   is
50      function Send_Base
51        (ID         : RTEMS.ID;
52         Signal_Set : RTEMS.Signal_Set)
53         return       RTEMS.Status_Codes;
54      pragma Import (C, Send_Base, "rtems_signal_send");
55   begin
56
57      Result := Send_Base (ID, Signal_Set);
58
59   end Send;
60
61end RTEMS.Signal;
Note: See TracBrowser for help on using the repository browser.