Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
SysOpen


NAME

SysOpen - open a file

SYNOPSIS

PROCEDURE Open(VAR fd: CARDINAL; filename: ARRAY OF CHAR;
               oflag: WORD) : BOOLEAN;


PROCEDURE OpenCreat(VAR fd: CARDINAL; filename: ARRAY OF CHAR; oflag: WORD; mode: CARDINAL) : BOOLEAN;

DESCRIPTION

Open opens filename with an access mode specified by oflag. Possible values for the access mode oflag are exported by SystemTypes(4). OpenCreat works like Open but accepts an additional mode parameter which is needed if SystemTypes.creat has been included in oflag. On success, both operations return TRUE and store the new file descriptor in fd.

DIAGNOSTICS

On failure, FALSE is returned and Errno.errno is set.

SEE ALSO

open(2), SysCreat, SysFcntl
Edited by: borchert, last change: 1997/02/26, revision: 1.1, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine