DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦dff88ff0a⟧ TextFile

    Length: 2518 (0x9d6)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

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;