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

⟦a1e9e6bb2⟧ TextFile

    Length: 4090 (0xffa)
    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

separate (Directory)
package body Statistics is

    function Time_Of_Last_Update (The_Object : Object) return Calendar.Time is
    begin
        return Di.Time_Of_Last_Update (Path => Naming.Full_Name (The_Object));
    end Time_Of_Last_Update;


    function Time_Of_Last_Read (The_Object : Object) return Calendar.Time is
    begin  
        return Di.Time_Of_Last_Read (Path => Naming.Full_Name (The_Object));
    end Time_Of_Last_Read;


    function Creator (The_Object : Object) return User is
    begin
        return Di.Entry_Username (Naming.Full_Name (The_Object));
    end Creator;

    function Creator_Group (The_Object : Object) return Group is
    begin
        return Di.Entry_Groupname (Path => Naming.Full_Name (The_Object));
    end Creator_Group;

    function Object_Size (The_Object : Object) return Integer is
    begin
        return Di.Entry_Size (Naming.Full_Name (The_Object));
    end Object_Size;

    function Number_Of_Links (The_Object : Object) return Integer is
    begin
        return Di.Number_Of_Links (Path => Naming.Full_Name (The_Object));
    end Number_Of_Links;

    function Owner_Permissions (The_Object : Object)
                               return Permission_Enumeration is
    begin
        return Di.Entry_Owner_Permissions
                  (Path => Naming.Full_Name (The_Object));
    end Owner_Permissions;

    function Group_Permissions (The_Object : Object)
                               return Permission_Enumeration is
    begin
        return Di.Entry_Group_Permissions
                  (Path => Naming.Full_Name (The_Object));
    end Group_Permissions;

    function Other_Permissions (The_Object : Object)
                               return Permission_Enumeration is
    begin
        return Di.Entry_Other_Permissions
                  (Path => Naming.Full_Name (The_Object));
    end Other_Permissions;

    procedure Change_Owner_Permissions
                 (The_Object      : Object;
                  The_Permissions : Permission_Enumeration) is
    begin
        Di.Change_Owner_Permissions
           (Path => Naming.Full_Name (The_Object), Mode => The_Permissions);
    end Change_Owner_Permissions;

    procedure Change_Group_Permissions
                 (The_Object      : Object;
                  The_Permissions : Permission_Enumeration) is
    begin
        Di.Change_Group_Permissions
           (Path => Naming.Full_Name (The_Object), Mode => The_Permissions);
    end Change_Group_Permissions;

    procedure Change_Other_Permissions
                 (The_Object      : Object;
                  The_Permissions : Permission_Enumeration) is
    begin
        Di.Change_Other_Permissions
           (Path => Naming.Full_Name (The_Object), Mode => The_Permissions);
    end Change_Other_Permissions;

    function Image (The_Permissions : Permission_Enumeration) return String is
    begin
        case The_Permissions is
            when None_Permission =>
                return "---";
            when X_Permission =>
                return "--x";
            when W_Permission =>
                return "-w-";
            when W_X_Permission =>
                return "-wx";
            when R_Permission =>
                return "r--";
            when R_X_Permission =>
                return "r-x";
            when R_W_Permission =>
                return "rw-";
            when R_W_X_Permission =>
                return "rwx";
        end case;
    end Image;

    function Value (S : in String) return Permission_Enumeration is
    begin
        if S = "---" then
            return None_Permission;
        elsif S = "--x" then
            return X_Permission;
        elsif S = "-w-" then
            return W_Permission;
        elsif S = "-wx" then
            return W_X_Permission;
        elsif S = "r--" then
            return R_Permission;
        elsif S = "r-x" then
            return R_X_Permission;
        elsif S = "rw-" then
            return R_W_Permission;
        elsif S = "rwx" then
            return R_W_X_Permission;
        end if;
    end Value;
end Statistics;