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 (/).
result = access (path);
path Required. String that contains the name of the path and/or file to verify.
|true||The directory or file exists on the Policy Server host.|
|false||The directory or file does not exist on the Policy Server host.|
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.
logmktemp(), mktemp(), stat()