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

⟦3c5a45661⟧ TextFile

    Length: 1197 (0x4ad)
    Types: TextFile
    Notes: R1k Text-file segment

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦23109fe35⟧ 
            └─⟦this⟧ 

TextFile

with file_support;
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);


	procedure file_lock(file: file_support.file_ptr);
	procedure file_unlock(file: file_support.file_ptr);

	-- 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