diff options
author | trasz <trasz@FreeBSD.org> | 2009-03-30 20:56:37 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-03-30 20:56:37 +0000 |
commit | 369dfb5670f24cf9f27d3b0d4949c570bb2907b8 (patch) | |
tree | 0bd177c2c20120877ec7daa02b1f1adcbf8657bc /share/man/man9/VOP_ATTRIB.9 | |
parent | 17f31804478d7c687653b106a7fa0648e81eb417 (diff) | |
download | FreeBSD-src-369dfb5670f24cf9f27d3b0d4949c570bb2907b8.zip FreeBSD-src-369dfb5670f24cf9f27d3b0d4949c570bb2907b8.tar.gz |
Remove pseudocode from VOP_* manual pages. It was out of date anyway.
Reviewed by: scottl
Approved by: rwatson (mentor)
Diffstat (limited to 'share/man/man9/VOP_ATTRIB.9')
-rw-r--r-- | share/man/man9/VOP_ATTRIB.9 | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/share/man/man9/VOP_ATTRIB.9 b/share/man/man9/VOP_ATTRIB.9 index 79e8e05..f14b1a5 100644 --- a/share/man/man9/VOP_ATTRIB.9 +++ b/share/man/man9/VOP_ATTRIB.9 @@ -84,68 +84,6 @@ otherwise an appropriate error is returned. .Fn VOP_SETATTR returns zero if the attributes were changed successfully, otherwise an appropriate error is returned. -.Sh PSEUDOCODE -.Bd -literal -int -vop_getattr(struct vnode *vp, struct vattr *vap, struct ucred *cred) -{ - - /* - * Fill in the contents of *vap with information from - * the file system. - */ - ...; - - return 0; -} - -int -vop_setattr(struct vnode *vp, struct vattr *vap, struct ucred *cred) -{ - - /* - * Check for unsettable attributes. - */ - if ((vap->va_type != VNON) || (vap->va_nlink != VNOVAL) || - (vap->va_fsid != VNOVAL) || (vap->va_fileid != VNOVAL) || - (vap->va_blocksize != VNOVAL) || (vap->va_rdev != VNOVAL) || - ((int)vap->va_bytes != VNOVAL) || (vap->va_gen != VNOVAL)) { - return (EINVAL); - } - - if (vap->va_flags != VNOVAL) { - /* - * Set the immutable and append flags of the file. - */ - } - - if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) { - /* - * Change owner and/or group of the file. - */ - } - - if (vap->va_size != VNOVAL) { - /* - * Truncate the file to the specified size. - */ - } - - if (vap->va_atime.tv_sec != VNOVAL || vap->va_mtime.tv_sec != VNOVAL) { - /* - * Change access and/or modification time of file. - */ - } - - if (vap->va_mode != (mode_t)VNOVAL) { - /* - * Change permissions of file. - */ - } - - return 0; -} -.Ed .Sh ERRORS .Bl -tag -width Er .It Bq Er EPERM |