INtime SDK Help
access, _waccess

Determine the accessibility of a file.

#include <io.h>
#include <unistd.h>       // for amode bit values

int access(const char *filename, int amode);

int _waccess(const wchar_t *filename, int amode);

Parameters

filename
The name of the file to check.
amode
The access mode to check.

Remarks

The access function shall check the file named by the filename argument for accessibility according to the bit pattern contained in amode.

The value of amode is either the bitwise-inclusive OR of the access permissions to be checked (R_OK, W_OK, X_OK) or the existence test (F_OK)

Note that the X_OK access permission is meaningless for INtime.

The _waccess function is the wide-character version of the access function.

Return Values

0 (zero).
Success.
-1. An invalid descriptor also sets errno to a suitable value.
Failure.

Requirements

Versions Defined in Include Link to
INtime 6.1 intime/rt/include/io.h io.h clib.lib
   
See Also