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

⟦0decf8ef4⟧ TextFile

    Length: 836 (0x344)
    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« 
        └─⟦953e5e5f8⟧ 
            └─⟦this⟧ 

TextFile

with file_support, os_files;
use  file_support;
procedure close_all is
	files: file_ptr := file_list;
	next_file: file_ptr;
	f: file_ptr;
	err_file: file_ptr := null;
begin
	while(files /= null) loop
		next_file := files.next;
		if files.buffer /= null and then files.file_id /= os_files.invalid  then
			if os_files."="(files.fd, os_files.stderr_fd) then
				err_file := files;
			elsif not os_files."="(files.fd, os_files.stdin_fd) then
				f := files;
				begin
					file_close_upon_exit(f);
				exception
				when others =>
					write_to_stderr("Could not close " & f.name.s & ascii.lf);
				end;
			end if;
		end if;
		files := next_file;
	end loop;
	begin
		if err_file /= null then
			file_close_upon_exit(err_file);
		end if;
	exception
	when others =>
		null;
	end;
end close_all;
pragma external_name(close_all, "__CLOSE_ALL")