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

⟦c5166f536⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Close_All, seg_050969

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



with File_Support, Os_Files;
use File_Support;
procedure Close_All is
    Files : File_Ptr := File_List;
    Next_File : File_Ptr;
    F : File_Ptr;
    Err_File : File_Ptr := null;
begin
    while (Files /= null) loop
        Next_File := Files.Next;
        if Files.Buffer /= null and then Files.File_Id /= Os_Files.Invalid then
            if Os_Files."=" (Files.Fd, Os_Files.Stderr_Fd) then
                Err_File := Files;
            elsif not Os_Files."=" (Files.Fd, Os_Files.Stdin_Fd) then
                F := Files;
                begin
                    File_Close_Upon_Exit (F);
                exception
                    when others =>
                        Write_To_Stderr ("Could not close " &
                                         F.Name.S & Ascii.Lf);
                end;
            end if;
        end if;
        Files := Next_File;
    end loop;
    begin
        if Err_File /= null then
            File_Close_Upon_Exit (Err_File);
        end if;
    exception
        when others =>
            null;
    end;
end Close_All;
pragma External_Name (Close_All, "__CLOSE_ALL");

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=042
        [0x01] rec0=08 rec1=00 rec2=02 rec3=000
    tail 0x21757fe56878e78cc4216 0x42a00088462060003