|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Identity, seg_0244c7
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Mac_Types; with Communications; with Interchange; with Mac_Text; package body Identity is function Version return Mac_Types.Longint is V : constant String := "2.1"; Index : Natural range V'Range; I, J : Mac_Types.Longint; begin I := 0; J := 0; Index := V'First; while V (Index) /= '.' loop if V (Index) not in '0' .. '9' then raise Constraint_Error; end if; I := I * 10 + Character'Pos (V (Index)) - Character'Pos ('0'); Index := Index + 1; end loop; Index := Index + 1; loop if V (Index) not in '0' .. '9' then raise Constraint_Error; end if; J := J * 10 + Character'Pos (V (Index)) - Character'Pos ('0'); exit when Index = V'Last; Index := Index + 1; end loop; return I * 256 + J; exception when others => return 0; end Version; procedure Check (A_Connection : in out Communications.Connection) is Host_Name : Mac_Text.Text (256); User_Name : Mac_Text.Text (256); Password : Mac_Text.Text (256); Trace_File : Mac_Text.Text (256); Identity : Mac_Types.Longint; Ibm_Platform : constant := 3; begin Interchange.Get_Text (A_Connection, Host_Name); Interchange.Get_Text (A_Connection, User_Name); Interchange.Get_Text (A_Connection, Password); Identity := 0; -- Check user identity OK Interchange.Get_Text (A_Connection, Trace_File); Interchange.Put_Int (A_Connection, Ibm_Platform); Interchange.Put_Int (A_Connection, Version); Interchange.Put_Int (A_Connection, Identity); end Check; end Identity;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=24 rec1=00 rec2=01 rec3=014 [0x01] rec0=1e rec1=00 rec2=02 rec3=001 tail 0x2171f840e839c6b8b584a 0x42a00088462060003