summaryrefslogtreecommitdiffstats
path: root/share/man/man9/VOP_LINK.9
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2009-03-30 20:56:37 +0000
committertrasz <trasz@FreeBSD.org>2009-03-30 20:56:37 +0000
commit369dfb5670f24cf9f27d3b0d4949c570bb2907b8 (patch)
tree0bd177c2c20120877ec7daa02b1f1adcbf8657bc /share/man/man9/VOP_LINK.9
parent17f31804478d7c687653b106a7fa0648e81eb417 (diff)
downloadFreeBSD-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.931
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
OpenPOWER on IntegriCloud