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_LINK.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_LINK.9')
-rw-r--r-- | share/man/man9/VOP_LINK.9 | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/share/man/man9/VOP_LINK.9 b/share/man/man9/VOP_LINK.9 index 559526c..b7fbb7b 100644 --- a/share/man/man9/VOP_LINK.9 +++ b/share/man/man9/VOP_LINK.9 @@ -66,37 +66,6 @@ the vnodes locked on return. .Sh RETURN VALUES Zero is returned if the file was linked successfully, otherwise an error is returned. -.Sh PSEUDOCODE -.Bd -literal -int -vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) -{ - int error = 0; - - if (vp->v_mount != dvp->v_mount) - return (EXDEV); - - if (vp would have too many links) - return (EMLINK); - - if (vp is immutable) - return (EPERM); - - /* - * Increment link count of vp and write back the on-disc version of it. - */ - ...; - - if (!error) { - /* - * Add the new name to the directory. - */ - ...; - } - - return error; -} -.Ed .Sh ERRORS .Bl -tag -width Er .It Bq Er EMLINK |