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

⟦933fb48d7⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Safe_Support, seg_04b964

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



with File_Support;
with Text_Io;
package Safe_Support is

    -- Ada tasking safe and abort safe file I/O support.
    --
    -- All sequential_io, direct_io, text_io, integer_io, float_io,
    -- fixed_io and enumeration_io file operations are wrapped
    -- by the services file_lock() and file_unlock(). The user
    -- is guaranteed atomic operations on a per task basis.
    -- Furthermore, the task initiating the I/O request is inhibited from being
    -- completed by an Ada Abort until it finishes.
    --
    -- The remaining lock() and unlock() services protect
    -- data structures shared across multiple files.

    -- Initialize/destroy the file's lock mutex
    function File_Mutex_Init (File : File_Support.File_Ptr) return Boolean;
    procedure File_Mutex_Destroy (File : File_Support.File_Ptr);

    -- Overloaded file_lock/file_unlock

    procedure File_Lock (File : File_Support.File_Ptr);
    procedure File_Unlock (File : File_Support.File_Ptr);

    procedure File_Lock (File : Text_Io.File_Type);
    procedure File_Unlock (File : Text_Io.File_Type);

    -- Protect shared data structures in text_io
    procedure Text_Io_Lock;
    procedure Text_Io_Unlock;

    -- Protect shared data structures in file_support
    procedure File_Support_Lock;
    procedure File_Support_Unlock;

    -- Protect shared data structures in os_files
    procedure Os_Files_Lock;
    procedure Os_Files_Unlock;

end Safe_Support;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=19 rec1=00 rec2=01 rec3=06c
        [0x01] rec0=12 rec1=00 rec2=02 rec3=000
    tail 0x21750ba7c868435f51c4f 0x42a00088462060003