|
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: 2048 (0x800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Perror, seg_04b95f
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io; with Errno; with System; with Unchecked_Conversion; with Language; package body Perror is subtype Fixed_String is String (1 .. 512); type Afs is access Fixed_String; pragma Local_Access (Afs); type Errlist is array (Errno.Error_Codes) of System.Address; C_Errlist : Errlist; pragma Interface_Name (C_Errlist, Language.C_Prefix & "sys_errlist"); function To_Afs is new Unchecked_Conversion (System.Address, Afs); function Get_Msg (Code : Errno.Error_Codes) return String is Msg : Afs; I : Integer; begin Msg := To_Afs (C_Errlist (Code)); I := 1; while Msg (I) /= Ascii.Nul loop I := I + 1; end loop; return Msg (1 .. I); end Get_Msg; procedure Perror (S : String) is begin Text_Io.Put_Line (S & ": " & Get_Msg (Errno.Errno)); end Perror; end Perror;
nblk1=1 nid=0 hdr6=2 [0x00] rec0=26 rec1=00 rec2=01 rec3=001 tail 0x21750b9da868435c2e20d 0x42a00088462060003