access (filename, mode)
The name of a file on disk.
The file mode to be tested. The legal modes are discussed below.
Zero is returned if the access mode is valid, otherwise -1 is returned and the errno is set.
This function checks a file for the following permissions. Two or more permissions in bitwise OR combinations can be checked at one time.
R_OK Test for read permission.
W_OK Test for write permission.
X_OK Test for execute permission.
F_OK Test for existence of file.
The library "const/Filesys.lsp" must be required to use the constants listed above.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.