summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-09-22 03:07:41 +0000
committerrwatson <rwatson@FreeBSD.org>2001-09-22 03:07:41 +0000
commitf12cf1d43056d0100f41608cef3ce2d093e0e619 (patch)
tree0b4ee4b8440c3e9af094462ea71b4c620520bef4 /sys
parent929f6090a905b9b22c76b9e2cb64819571fcd7f1 (diff)
downloadFreeBSD-src-f12cf1d43056d0100f41608cef3ce2d093e0e619.zip
FreeBSD-src-f12cf1d43056d0100f41608cef3ce2d093e0e619.tar.gz
o vpaccess() -> vn_access() -- Peter reminds me that there is already
a convention for vnop helper routines of this sort. Submitted by: Mr Wemm <peter>
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_extattr.c8
-rw-r--r--sys/kern/vfs_syscalls.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 9dae212..38d7a41 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -84,7 +84,7 @@ static int setfmode __P((struct thread *td, struct vnode *, int));
static int setfflags __P((struct thread *td, struct vnode *, int));
static int setutimes __P((struct thread *td, struct vnode *,
const struct timespec *, int));
-static int vpaccess __P((struct vnode *vp, int user_flags, struct ucred *cred,
+static int vn_access __P((struct vnode *vp, int user_flags, struct ucred *cred,
struct thread *td));
static int usermount = 0; /* if 1, non-root can mount fs. */
@@ -1703,7 +1703,7 @@ olseek(td, uap)
* Check access permissions using passed credentials.
*/
static int
-vpaccess(vp, user_flags, cred, td)
+vn_access(vp, user_flags, cred, td)
struct vnode *vp;
int user_flags;
struct ucred *cred;
@@ -1769,7 +1769,7 @@ access(td, uap)
goto out1;
vp = nd.ni_vp;
- error = vpaccess(vp, SCARG(uap, flags), tmpcred, td);
+ error = vn_access(vp, SCARG(uap, flags), tmpcred, td);
NDFREE(&nd, NDF_ONLY_PNBUF);
vput(vp);
out1:
@@ -1805,7 +1805,7 @@ eaccess(td, uap)
return (error);
vp = nd.ni_vp;
- error = vpaccess(vp, SCARG(uap, flags), td->td_proc->p_ucred, td);
+ error = vn_access(vp, SCARG(uap, flags), td->td_proc->p_ucred, td);
NDFREE(&nd, NDF_ONLY_PNBUF);
vput(vp);
return (error);
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 9dae212..38d7a41 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -84,7 +84,7 @@ static int setfmode __P((struct thread *td, struct vnode *, int));
static int setfflags __P((struct thread *td, struct vnode *, int));
static int setutimes __P((struct thread *td, struct vnode *,
const struct timespec *, int));
-static int vpaccess __P((struct vnode *vp, int user_flags, struct ucred *cred,
+static int vn_access __P((struct vnode *vp, int user_flags, struct ucred *cred,
struct thread *td));
static int usermount = 0; /* if 1, non-root can mount fs. */
@@ -1703,7 +1703,7 @@ olseek(td, uap)
* Check access permissions using passed credentials.
*/
static int
-vpaccess(vp, user_flags, cred, td)
+vn_access(vp, user_flags, cred, td)
struct vnode *vp;
int user_flags;
struct ucred *cred;
@@ -1769,7 +1769,7 @@ access(td, uap)
goto out1;
vp = nd.ni_vp;
- error = vpaccess(vp, SCARG(uap, flags), tmpcred, td);
+ error = vn_access(vp, SCARG(uap, flags), tmpcred, td);
NDFREE(&nd, NDF_ONLY_PNBUF);
vput(vp);
out1:
@@ -1805,7 +1805,7 @@ eaccess(td, uap)
return (error);
vp = nd.ni_vp;
- error = vpaccess(vp, SCARG(uap, flags), td->td_proc->p_ucred, td);
+ error = vn_access(vp, SCARG(uap, flags), td->td_proc->p_ucred, td);
NDFREE(&nd, NDF_ONLY_PNBUF);
vput(vp);
return (error);
OpenPOWER on IntegriCloud