VOP_ACCESS.9 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) VOP_ACCESS.9 (fb3fd4761104fb0b02380e3f8d8f543bd0dc52c7)
1.\" -*- nroff -*-
2.\" -*- nroff -*-
3.\"
4.\" Copyright (c) 1996 Doug Rabson
5.\"
6.\" All rights reserved.
7.\"
8.\" This program is free software.

--- 49 unchanged lines hidden (view full) ---

58.Pp
59The
60.Fa mode
61is a mask which can contain
62.Dv VREAD ,
63.Dv VWRITE or
64.Dv VEXEC.
65.Sh LOCKS
1.\" -*- nroff -*-
2.\" -*- nroff -*-
3.\"
4.\" Copyright (c) 1996 Doug Rabson
5.\"
6.\" All rights reserved.
7.\"
8.\" This program is free software.

--- 49 unchanged lines hidden (view full) ---

58.Pp
59The
60.Fa mode
61is a mask which can contain
62.Dv VREAD ,
63.Dv VWRITE or
64.Dv VEXEC.
65.Sh LOCKS
66The vnode should be locked on entry.
66The vnode will be locked on entry and should remain locked on return.
67.Sh RETURN VALUES
68If the file is accessible in the specified way, then zero is returned,
69otherwise an appropriate error code is returned.
70.Sh PSEUDOCODE
71.Bd -literal
72int
73vop_access(struct vnode *vp, int mode, struct ucred *cred, struct proc *p)
74{

--- 74 unchanged lines hidden ---
67.Sh RETURN VALUES
68If the file is accessible in the specified way, then zero is returned,
69otherwise an appropriate error code is returned.
70.Sh PSEUDOCODE
71.Bd -literal
72int
73vop_access(struct vnode *vp, int mode, struct ucred *cred, struct proc *p)
74{

--- 74 unchanged lines hidden ---