Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
UnixFileConditions


NAME

UnixFileConditions - conditions for UNIX file descriptors

SYNOPSIS

(* 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;

DESCRIPTION

UnixFileConditions interfaces SysSelect for Conditions. It is mainly used by file descriptor based stream implementations which support StreamConditions.

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.

SEE ALSO

Conditions
general interface for conditions
StreamConditions
interface for stream conditions
SysSelect
system call interface for select(2)

Edited by: borchert, last change: 1992/03/17, revision: 1.2, converted to HTML: 1997/04/28

Oberon || Library || Module Index || Search Engine || Definition || Module