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

⟦9535cb5c4⟧ TextFile

    Length: 1499 (0x5db)
    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 Unique;
package body Unix_Definitions is

    function Enclosing_Directory (Name : in String) return String is
    begin
        for I in reverse Name'Range loop
            if Name (I) = Context_Separator then
                return Name (Name'First .. I - 1);
            end if;
        end loop;  
        return "";
    end Enclosing_Directory;

    function Local_Name (Name : in String) return String is
    begin
        for I in reverse Name'Range loop
            if Name (I) = Context_Separator then
                return Name (I + 1 .. Name'Last);
            end if;
        end loop;
        return Name;
    end Local_Name;

    function Simple_Name (Name : in String) return String is
    begin
        for I in reverse Name'Range loop
            if Name (I) = Context_Separator then
                for J in I + 1 .. Name'Last loop
                    if Name (J) = Extension_Separator then
                        return Name (I + 1 .. J - 1);
                    end if;
                end loop;
                return Name (I + 1 .. Name'Last);
            end if;
        end loop;  
        return Name;
    end Simple_Name;

    function Temporary_Filename (Extension : in String) return String is
        Unique_Name : constant String := Unique & Extension;

        pragma Assert (Unique_Name'Length <= Minimal_Filename_Length);

    begin
        return Context_Separator & "tmp" & Context_Separator & Unique_Name;
    end Temporary_Filename;

end Unix_Definitions;