i386-protos.h (x86_emit_floatuns): Declare.
[official-gcc.git] / gcc / ada / s-rpc.ads
blob2c479a38463c356b794ceb3ebfcae819dfe91a12
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- S Y S T E M . R P C --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-1998 Free Software Foundation, Inc. --
11 -- --
12 -- This specification is derived from the Ada Reference Manual for use with --
13 -- GNAT. The copyright notice above, and the license provisions that follow --
14 -- apply solely to the contents of the part following the private keyword. --
15 -- --
16 -- GNAT is free software; you can redistribute it and/or modify it under --
17 -- terms of the GNU General Public License as published by the Free Soft- --
18 -- ware Foundation; either version 2, or (at your option) any later ver- --
19 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
20 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
21 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
22 -- for more details. You should have received a copy of the GNU General --
23 -- Public License distributed with GNAT; see file COPYING. If not, write --
24 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
25 -- MA 02111-1307, USA. --
26 -- --
27 -- As a special exception, if other files instantiate generics from this --
28 -- unit, or you link this unit with other files to produce an executable, --
29 -- this unit does not by itself cause the resulting executable to be --
30 -- covered by the GNU General Public License. This exception does not --
31 -- however invalidate any other reasons why the executable file might be --
32 -- covered by the GNU Public License. --
33 -- --
34 -- GNAT was originally developed by the GNAT team at New York University. --
35 -- Extensive contributions were provided by Ada Core Technologies Inc. --
36 -- --
37 ------------------------------------------------------------------------------
39 -- Note: this is a dummy implementation which does not support distribution.
40 -- The GLADE distribution package includes a replacement for this file which
41 -- has a different private
43 with Ada.Streams;
45 package System.RPC is
47 type Partition_ID is range 0 .. 63;
48 -- This type must not be modified without checking the code in
49 -- a-except.adb, since it expects a Partition_ID whose string
50 -- representation fits on two characters.
52 Communication_Error : exception;
54 type Params_Stream_Type
55 (Initial_Size : Ada.Streams.Stream_Element_Count) is new
56 Ada.Streams.Root_Stream_Type with private;
58 procedure Read
59 (Stream : in out Params_Stream_Type;
60 Item : out Ada.Streams.Stream_Element_Array;
61 Last : out Ada.Streams.Stream_Element_Offset);
63 procedure Write
64 (Stream : in out Params_Stream_Type;
65 Item : in Ada.Streams.Stream_Element_Array);
67 -- Synchronous call
69 procedure Do_RPC
70 (Partition : in Partition_ID;
71 Params : access Params_Stream_Type;
72 Result : access Params_Stream_Type);
74 -- Asynchronous call
76 procedure Do_APC
77 (Partition : in Partition_ID;
78 Params : access Params_Stream_Type);
80 -- The handler for incoming RPCs.
82 type RPC_Receiver is
83 access procedure
84 (Params : access Params_Stream_Type;
85 Result : access Params_Stream_Type);
87 procedure Establish_RPC_Receiver (
88 Partition : in Partition_ID;
89 Receiver : in RPC_Receiver);
91 private
93 type Params_Stream_Type
94 (Initial_Size : Ada.Streams.Stream_Element_Count) is new
95 Ada.Streams.Root_Stream_Type with null record;
97 end System.RPC;