access
Description
The access() function verifies the existence of a path and/or file on the Policy Server host. path should contain a fully qualified name, starting with a forward slash character (/).
Not supported in Endpoint Privilege Management for Linux (EPM-L).
Syntax
result = access (path);
Arguments
path Required. String that contains the name of the path and/or file to verify.
Return Values
true | The directory or file exists on the Policy Server host. |
false | The directory or file does not exist on the Policy Server host. |
Example
In the example,
result = access ("/tmp/user.txt");
result contains true if /tmp/user.text exists on Policy Server host. result contains false if /tmp/user.text does not exist on the Policy Server host and is not accessible to the superuser.
See Also
logmktemp(), mktemp(), stat()