next up previous contents index
Next: 7.4.4 readlink: Read the Up: 7.4 oskit_file: File Interface Previous: 7.4.2 datasync: Write this

7.4.3 access: Check accessibility of this file

 

SYNOPSIS

#include <oskit/fs/file.h>

oskit_error_t oskit_file_access(oskit_file_t *f, oskit_amode_t mask);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

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.

PARAMETERS

f
The file whose accessibility is to be checked.
mask
The access mask.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group