Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
SysAccess
NAME
SysAccess - determine accessibility of a file
SYNOPSIS
PROCEDURE Access(filename: ARRAY OF CHAR; mode: CARDINAL) : BOOLEAN;
DESCRIPTION
This module serves as interface to access(2).
Following values for mode are supported:
- 4
-
test for read permission
- 2
-
test for write permission
- 1
-
test for execute permission
- 0
-
test for existence of file
Note that the test is performed for the real user id and
not for the effective user id.
DIAGNOSTICS
Access
returns TRUE on success.
On failure, FALSE is returned and Errno.errno set.
SEE ALSO
access(2) |
underlying system call
|
SysOpen |
opening files
|
BUGS
The various mode should have been represented by an
enumeration type.
Edited by: borchert, last change: 1997/02/25, revision: 1.1, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine