2015-05-05 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git] / gcc / ada / s-rpc.adb
blob1ffb9b9847cb163dc0d8a8c5d8bcb7b837bbc704
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S Y S T E M . R P C --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT 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 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- Note: this is a dummy implementation which does not support distribution.
33 -- All the bodies but one therefore raise an exception as defined below.
34 -- Establish_RPC_Receiver is callable, so that the ACVC scripts can simulate
35 -- the presence of a master partition to run a test which is otherwise not
36 -- distributed.
38 -- The GLADE distribution package includes a replacement for this file
40 package body System.RPC is
42 CRLF : constant String := ASCII.CR & ASCII.LF;
44 Msg : constant String :=
45 CRLF & "Distribution support not installed in your environment" &
46 CRLF & "For information on GLADE, contact Ada Core Technologies";
48 ----------
49 -- Read --
50 ----------
52 procedure Read
53 (Stream : in out Params_Stream_Type;
54 Item : out Ada.Streams.Stream_Element_Array;
55 Last : out Ada.Streams.Stream_Element_Offset)
57 begin
58 raise Program_Error with Msg;
59 end Read;
61 -----------
62 -- Write --
63 -----------
65 procedure Write
66 (Stream : in out Params_Stream_Type;
67 Item : Ada.Streams.Stream_Element_Array)
69 begin
70 raise Program_Error with Msg;
71 end Write;
73 ------------
74 -- Do_RPC --
75 ------------
77 procedure Do_RPC
78 (Partition : Partition_ID;
79 Params : access Params_Stream_Type;
80 Result : access Params_Stream_Type)
82 begin
83 raise Program_Error with Msg;
84 end Do_RPC;
86 ------------
87 -- Do_APC --
88 ------------
90 procedure Do_APC
91 (Partition : Partition_ID;
92 Params : access Params_Stream_Type)
94 begin
95 raise Program_Error with Msg;
96 end Do_APC;
98 ----------------------------
99 -- Establish_RPC_Receiver --
100 ----------------------------
102 procedure Establish_RPC_Receiver
103 (Partition : Partition_ID;
104 Receiver : RPC_Receiver)
106 pragma Unreferenced (Partition, Receiver);
107 begin
108 null;
109 end Establish_RPC_Receiver;
111 end System.RPC;