Wrapper around the access syscall.