SoftcardFSAccess.mesa
Copyright Ó 1987 by Xerox Corporation. All rights reserved.
written by Christian Le Cocq, September 6, 1988
Christian Le Cocq October 11, 1988 2:27:42 pm PDT
Low level constants to Sparc FS access for the Softcard
DIRECTORY
IO;
SoftcardFSAccess: CEDAR DEFINITIONS
~ BEGIN
SCLOSE: CARD32 = 0;
SWRITE: CARD32 = SCLOSE+1;
SREAD: CARD32 = SWRITE+1;
SSETINDEX: CARD32 = SREAD+1;
SGETINDEX: CARD32 = SSETINDEX+1;
SSETLENGTH: CARD32 = SGETINDEX+1;
SGETLENGTH: CARD32 = SSETLENGTH+1;
SOPEN: CARD32 = SGETLENGTH+1;
lastTypeUsed: CARD32 = SOPEN;
STDIN: CARD32 = 0;
STDOUT: CARD32 = 1;
STDERR: CARD32 = 2;
specialStreams: CARD32 = STDERR;
FSREAD: CARD32 = 0;
FSCREATE: CARD32 = 1;
FSAPPEND: CARD32 = 2;
FSWRITE: CARD32 = 3;
TSCREATE: CARD32 = 4;
RegisterConsoleStreams: PROC [in, out, err: IO.STREAM];
Open a console viewer on the 6085 screen.
UnknownStream: SIGNAL;
raised when a Sparc program attempts to use a stream which has not been previously opened (uses an unknown stream #).
Reset: PUBLIC PROC[fileInput: IO.STREAM];
END.