(*
    Title: 	BFileIO - Definitions
    LastEdit:	"Tue Jan 31 12:00:55 1984"
    Author: 	Mick Jordan
		Cambridge University Computer Laboratory

    Tiny Kernel interface
*)

DEFINITION MODULE BFileIO;

FROM BStreams IMPORT STREAM;

EXPORT QUALIFIED 
  AR StreamErrorCode: INTEGER;
(*  Set to the OS error code in the event of an error.
*)

PROCEDURE FindInput(name: ARRAY OF CHAR): STREAM;
(*  Open an input stream to file 'name'.
*)

PROCEDURE FindOutput(name: ARRAY OF CHAR): STREAM;
(*  Open an output stream to file 'name'.
    If the file does not exist it is created,
    otherwise it is truncated to zero length.
*)

PROCEDURE FindInOutput(name: ARRAY OF CHAR): STREAM;
(*  Open an input/output stream to file 'name'.
    If the file does not exist it is created.
*)

END BFileIO .
