Skip to main content

SYS_ACCESS

Constant SYS_ACCESS 

Source
pub const SYS_ACCESS: usize = 413;
Expand description

Check file accessibility using the real user/group IDs.

  • path_ptr: pointer to the path string
  • path_len: length of the path
  • mode: accessibility check (F_OK=0, R_OK=4, W_OK=2, X_OK=1)

Returns 0 if the file is accessible, -EACCES or -ENOENT otherwise. Prefer SYS_FACCESSAT for new code : this syscall is provided for POSIX compatibility.