#include <oskit/fs/file.h>oskit_error_t oskit_file_access(oskit_file_t *f, oskit_amode_t mask);
client OSfilesystem library
This method checks whether the form of access specified by mask would be granted. mask may be any combination of OSKIT_R_OK (read access), OSKIT_W_OK (write access), or OSKIT_X_OK (execute access). If the access would not be granted, then this method will return the error that would be returned if the actual access were attempted.
- f
- The file whose accessibility is to be checked.
- mask
- The access mask.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.