|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 1409 (0x581) Types: TextFile Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦bb25a46d4⟧ └─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16 └─ ⟦6f12a12be⟧ »DATA« └─⟦bb25a46d4⟧ └─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04 └─ ⟦d65440be7⟧ »DATA« └─⟦bb25a46d4⟧ └─⟦this⟧
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;