DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦24fb95b23⟧ Ada Source

    Length: 12288 (0x3000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Signal_To_Shell_F, package body Signal_To_Shell_R, seg_0251c9

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Communications;
with Errors;
with Files;
with Files;
with Interchange;
with Mac_Files;  
with Mac_Path;
with Mac_Types;
with Mac_Text;
with Memory;
with Osutils;
with Packages;
with Rational_Error;
with Remote_Shell;
with System;
with Talk_Utils;
with Text_Io;
use Text_Io;
with Unchecked_Conversion;
package body Signal_To_Shell_R is

    package Signal_To_Shell_F is

        procedure Signal_In (Signal : Mac_Types.Longint);
        procedure End_Signal_To_Shell;

    end Signal_To_Shell_F;

    package body Signal_To_Shell_F is  
        Err : Mac_Types.Oserr := Mac_Types.Noerr;

        procedure Signal_In (Signal : Mac_Types.Longint) is
        begin
            Err := Remote_Shell.Signal (Signal);
        end Signal_In;

        procedure End_Signal_To_Shell is
        begin  
            if Err /= Mac_Types.Noerr then
                Rational_Error.Raise_Mac_Error (Err);
            end if;  
        end End_Signal_To_Shell;

    end Signal_To_Shell_F;

    procedure Read (A_Connection : in out Communications.Connection) is
        I : Mac_Types.Longint;
        B : Boolean;
        T : Mac_Text.Text (256);  
    begin
        Put_Line ("signal_to_shell:read begin");
        Interchange.Get_Int (A_Connection, I);
        if I /= Talk_Utils.F_Signal then
            Rational_Error.Raise_Error (Rational_Error.Internal_Error);
        end if;  
        Interchange.Get_Int (A_Connection, I);
        Signal_To_Shell_F.Signal_In (I);
        Interchange.Get_Int (A_Connection, I);
        if I /= Talk_Utils.F_Delimitor then
            Rational_Error.Raise_Error (Rational_Error.Internal_Error);
        end if;
        Interchange.Get_Int (A_Connection, I);
        if I /= Talk_Utils.R_Signal_To_Shell then
            Rational_Error.Raise_Error (Rational_Error.Internal_Error);
        end if;
        Put_Line ("signal_to_shell:read end");
    end Read;

    procedure Write (A_Connection : in out Communications.Connection) is
    begin
        Put_Line ("signal_to_shell:write begin");
        begin  
            Signal_To_Shell_F.End_Signal_To_Shell;
        exception
            when others =>
                Rational_Error.Report
                   (A_Connection, Talk_Utils.R_Signal_To_Shell,
                    Rational_Error.Get);
        end;  
        Interchange.Put_Int (A_Connection, Talk_Utils.F_Delimitor);
        Interchange.Put_Int (A_Connection, Talk_Utils.R_Signal_To_Shell);
        Put_Line ("signal_to_shell:write end");
    end Write;

end Signal_To_Shell_R;

E3 Meta Data

    nblk1=b
    nid=5
    hdr6=6
        [0x00] rec0=2b rec1=00 rec2=01 rec3=022
        [0x01] rec0=1b rec1=00 rec2=0a rec3=010
        [0x02] rec0=11 rec1=00 rec2=02 rec3=000
        [0x03] rec0=00 rec1=00 rec2=05 rec3=012
        [0x04] rec0=18 rec1=00 rec2=02 rec3=020
        [0x05] rec0=07 rec1=00 rec2=09 rec3=000
        [0x06] rec0=07 rec1=00 rec2=09 rec3=000
        [0x07] rec0=18 rec1=00 rec2=02 rec3=020
        [0x08] rec0=07 rec1=00 rec2=09 rec3=000
        [0x09] rec0=06 rec1=00 rec2=08 rec3=000
        [0x0a] rec0=da rec1=ea rec2=e0 rec3=000
    tail 0x217201178839f5aff41be 0x42a00088462060003
Free Block Chain:
  0x5: 0000  00 09 01 de 80 10 53 69 67 6e 61 6c 5f 54 6f 5f  ┆      Signal_To_┆
  0x9: 0000  00 04 00 cb 00 0f 20 20 20 20 20 20 20 20 65 6e  ┆              en┆
  0x4: 0000  00 08 03 fc 80 02 29 3b 02 00 2e 20 20 20 20 20  ┆      );  .     ┆
  0x8: 0000  00 06 00 04 80 01 54 01 20 20 20 20 49 6e 74 65  ┆      T     Inte┆
  0x6: 0000  00 03 01 9b 80 18 4e 61 6d 65 20 3a 20 4d 61 63  ┆      Name : Mac┆
  0x3: 0000  00 0b 00 28 80 25 20 20 20 20 20 20 20 20 20 20  ┆   ( %          ┆
  0xb: 0000  00 07 00 0f 00 0c 20 20 20 20 20 20 20 20 20 20  ┆                ┆
  0x7: 0000  00 00 03 f9 80 03 65 29 3b 03 00 35 20 20 20 20  ┆      e);  5    ┆