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

⟦14ebdd274⟧ TextFile

    Length: 1917 (0x77d)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with System_Interface;
with Text_Io;
with Transport_Interchange;
with Unix_Base_Types;
with System;
package body Rs6000_Server is


    procedure Write_String_C
                 (C_Message : System.Address; C_Tty : System.Address);
    pragma Interface (C, Write_String_C);
    pragma Interface_Information (Write_String_C, ".write_string");

    procedure Process_Call (Stream : Transport_Stream.Stream_Id;
                            Id : Rpc.Transaction_Id;
                            Version : Rpc.Version_Number;
                            Proc : Rpc.Procedure_Number) is

    begin
        case Proc is
            when Rs6000_Defs.Proc_Number.Put =>
                -- Text_Io.Put_Line (Transport_Interchange.Get_String (Stream));
                -- Text_Io.Put_Line (Transport_Interchange.Get_String (Stream));

                declare
                    C_Message : constant String :=
                       Transport_Interchange.Get_String (Stream) & Ascii.Nul;
                    C_Tty : constant String :=
                       Transport_Interchange.Get_String (Stream) & Ascii.Nul;
                begin
                    Write_String_C (C_Message =>
                                       C_Message (C_Message'First)'Address,
                                    C_Tty => C_Tty (C_Tty'First)'Address);
                end;

                Rpc_Server.Begin_Response (Stream, Id);
            when others =>
                raise Rpc.No_Such_Procedure;
        end case;
    end Process_Call;

    procedure Serve_Gets is new Rpc_Server.Serve
                                   (Program => Rs6000_Defs.Program,
                                    Supported => (0, Rpc.Version_Number'Last),
                                    Process_Call => Process_Call);


    procedure Serve (Connection : Transport.Connection_Id) is
    begin
        Serve_Gets (Connection);

    end Serve;
end Rs6000_Server;