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

⟦e87674e88⟧ TextFile

    Length: 1409 (0x581)
    Types: TextFile
    Names: »B«

Derivation

└─⟦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⟧ 

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;