summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-08-28 15:23:18 +0000
committerattilio <attilio@FreeBSD.org>2008-08-28 15:23:18 +0000
commitdbf35e279f37ad4a573bf93923d141cb4a454c7d (patch)
tree61fe2ab5660fec327061e18eda0ed8c65276f262 /share
parentfb7f3b6363b61cead7eb5e94ac7f816358fc19ab (diff)
downloadFreeBSD-src-dbf35e279f37ad4a573bf93923d141cb4a454c7d.zip
FreeBSD-src-dbf35e279f37ad4a573bf93923d141cb4a454c7d.tar.gz
Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread
was always curthread and totally unuseful. Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/VOP_ATTRIB.916
1 files changed, 7 insertions, 9 deletions
diff --git a/share/man/man9/VOP_ATTRIB.9 b/share/man/man9/VOP_ATTRIB.9
index 0ea3ee6..79e8e05 100644
--- a/share/man/man9/VOP_ATTRIB.9
+++ b/share/man/man9/VOP_ATTRIB.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 24, 1996
+.Dd August 29, 2008
.Os
.Dt VOP_ATTRIB 9
.Sh NAME
@@ -39,9 +39,9 @@
.In sys/param.h
.In sys/vnode.h
.Ft int
-.Fn VOP_GETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred" "struct thread *td"
+.Fn VOP_GETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
.Ft int
-.Fn VOP_SETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred" "struct thread *td"
+.Fn VOP_SETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
.Sh DESCRIPTION
These entry points manipulate various attributes of a file or directory,
including file permissions, owner, group, size,
@@ -55,8 +55,6 @@ The vnode of the file.
The attributes of the file.
.It Fa cred
The user credentials of the calling process.
-.It Fa td
-The thread.
.El
.Pp
Attributes which are not being modified by
@@ -89,9 +87,9 @@ appropriate error is returned.
.Sh PSEUDOCODE
.Bd -literal
int
-vop_getattr(struct vnode *vp, struct vattr *vap,
- struct ucred *cred, struct thread *td)
+vop_getattr(struct vnode *vp, struct vattr *vap, struct ucred *cred)
{
+
/*
* Fill in the contents of *vap with information from
* the file system.
@@ -102,9 +100,9 @@ vop_getattr(struct vnode *vp, struct vattr *vap,
}
int
-vop_setattr(struct vnode *vp, struct vattr *vap,
- struct ucred *cred, struct thread *td)
+vop_setattr(struct vnode *vp, struct vattr *vap, struct ucred *cred)
{
+
/*
* Check for unsettable attributes.
*/
OpenPOWER on IntegriCloud