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

⟦b604f6579⟧ Ada Source

    Length: 8192 (0x2000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Statistics, seg_0269dc, seg_027c5a, seg_027cf5, separate Directory

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



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;

E3 Meta Data

    nblk1=7
    nid=3
    hdr6=c
        [0x00] rec0=20 rec1=00 rec2=01 rec3=034
        [0x01] rec0=1b rec1=00 rec2=07 rec3=004
        [0x02] rec0=19 rec1=00 rec2=02 rec3=00e
        [0x03] rec0=03 rec1=00 rec2=05 rec3=040
        [0x04] rec0=20 rec1=00 rec2=06 rec3=028
        [0x05] rec0=06 rec1=00 rec2=04 rec3=000
        [0x06] rec0=00 rec1=12 rec2=41 rec3=0a1
    tail 0x21721254c83ab4cbe9abc 0x42a00088462062803
Free Block Chain:
  0x3: 0000  00 00 00 04 80 01 65 01 02 03 04 05 06 07 08 09  ┆      e         ┆