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

⟦ce14e5d98⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Make_Controlled, seg_00e0a5, separate Ncmvc_Server

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



separate (Ncmvc_Server)
procedure Make_Controlled (Stream : Transport_Stream.Stream_Id;
                           Id     : Rpc.Transaction_Id) is
    Client_Object_Name : constant String := Ti.Get_String (Stream);
    Client_Context     : constant String := Ti.Get_String (Stream);
    Server_Context     : constant String := Ti.Get_String (Stream);
    Client_Name        : constant String := Ti.Get_String (Stream);
    Server_Object_Name : constant String :=
       Ftp_Name_Map.Remote_To_Local (File_Name   => Client_Object_Name,
                                     Local_Roof  => Server_Context,
                                     Remote_Roof => "",
                                     Remote_Type => "unix");
    Output             : Io.File_Type;  
begin
    -- Io.Create (File => Output, Mode => Io.Out_File, Name => "zzz", Form => "");
    -- Io.Set_Output (File => Output);
    --
    Rpc_Server.Begin_Response (Stream, Id);  
    Ftp.Get (From_Remote_File   => Client_Object_Name,
             To_Local_File      => Server_Object_Name,
             Remote_Machine     => Client_Name,
             Username           => Username,
             Password           => Password,
             Account            => Ftp_Profile.Account,
             Remote_Directory   => Client_Context,
             Remote_Type        => Ftp_Profile.Remote_Type,
             Append_To_File     => False,
             Transfer_Type      => Ftp_Profile.Transfer_Type,
             Transfer_Mode      => Ftp_Profile.Transfer_Mode,
             Transfer_Structure => Ftp_Profile.Transfer_Structure,
             Send_Port          => Ftp_Profile.Send_Port_Enabled,
             Response           => Ftp.Profile_Get);

    Cmvc.Make_Controlled (What_Object            => Server_Object_Name,
                          Reservation_Token_Name => "<AUTO_GENERATE>",
                          Join_With_View         => "<NONE>",
                          Save_Source            => True,
                          Comments               => "",
                          Work_Order             => "<DEFAULT>",
                          Response               => "<PROFILE>");

    Ti.Put_String (Into => Stream, Data => "make controlled done");

    -- Io.Save (Output);
    -- Io.Reset (Output);
    -- Io.Reset_Output;

    -- declare
    --     Data : String (1 .. 10000);
    --     I    : Integer := 1;
    -- begin
    --     while not Io.End_Of_File (Output) loop
    --         Io.Get (File => Output, Item => Data (I));
    --         I := I + 1;
    --     end loop;
    --     Ti.Put_String (Into => Stream, Data => Data (1 .. I));
    --
    -- end;

    -- Io.Delete (File => Output);
    --
end Make_Controlled;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=14 rec1=00 rec2=01 rec3=048
        [0x01] rec0=12 rec1=00 rec2=04 rec3=058
        [0x02] rec0=1a rec1=00 rec2=03 rec3=000
        [0x03] rec0=18 rec1=00 rec2=02 rec3=000
    tail 0x2170ada50821c51ba13c7 0x42a00088462063203
Free Block Chain:
  0x2: 0000  00 00 00 06 80 03 3e 20 43 03 20 28 53 74 72 65  ┆      > C  (Stre┆