Oberon || Library || Module Index || Search Engine || Definition || Module
(* operations *) CONST read = StreamConditions.read; CONST write = StreamConditions.write; CONST exception = 2;
PROCEDURE Create(VAR condition: Conditions.Condition; stream: Streams.Stream; fd: SysTypes.File; operation: SHORTINT); PROCEDURE Test(stream: Streams.Stream; fd: SysTypes.File; operation: SHORTINT; errors: RelatedEvents.Object) : BOOLEAN;
Create creates a condition which evaluates to TRUE if the given file descriptor fd is ready for operation, i.e. the operation would not block. Additionaly, UnixFileConditions is able to check the buffering state of stream (if it is non-NIL).
Test performs a similar check without blocking and relates all errors to errors.
Oberon || Library || Module Index || Search Engine || Definition || Module