Manual Reference Pages - VOP_ACCESSX (9)
- check access permissions of a file or Unix domain socket
VOP_ACCESS struct vnode *vp accmode_t accmode struct ucred *cred struct thread *td
VOP_ACCESSX struct vnode *vp accmode_t accmode struct ucred *cred struct thread *td
This entry point checks the access permissions of the file against the
Its arguments are:
The vnode of the file to check.
The type of access required.
The user credentials to check.
The thread which is checking.
is a mask which can contain flags described in <sys/vnode.h>, e.g.
the only flags that may be set in
To check for other flags, one has to use
The vnode will be locked on entry and should remain locked on return.
If the file is accessible in the specified way, then zero is returned,
otherwise an appropriate error code is returned.
An attempt was made to change an immutable file.
The permission bits the file mode or the ACL do not permit the
This manual page was written by
.An Doug Rabson .
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.