aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/namei.9
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-07-23 13:16:36 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-07-23 13:16:36 +0000
commit060c42c3d241a114ff76ac294f2033cc30ec87c1 (patch)
tree5d7e91b85192efeaab5ad544cc2e7a2a713a18e7 /share/man/man9/namei.9
parentfd3083e0f82caad4e808c32b8cc9a570f1d1bc5b (diff)
Mention SAVENAME and SAVESTART in the namei(9) operation flag description
since apparently people were missing that you aren't supposed to access the name buffer following namei() unless you specify one of these flags. Pointed out by: green Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Notes
Notes: svn path=/head/; revision=100571
Diffstat (limited to 'share/man/man9/namei.9')
-rw-r--r--share/man/man9/namei.911
1 files changed, 11 insertions, 0 deletions
diff --git a/share/man/man9/namei.9 b/share/man/man9/namei.9
index ec648961f018..6046458d75fb 100644
--- a/share/man/man9/namei.9
+++ b/share/man/man9/namei.9
@@ -151,6 +151,17 @@ This flag is not looked for by the actual code, which looks for
FOLLOW.
NOFOLLOW is used to indicate to the source code reader that symlinks
are intentionally not followed.
+.It Dv SAVENAME
+Do not free the name buffer at the end of the
+.Fn namei
+invocation, instead free it later in
+.Fn NDFREE
+so that the caller may access the name buffer.
+See below for details.
+.It Dv SAVESTART
+Retain an additional reference to the parent directory; do not free
+the name buffer.
+See below for details.
.El
.Sh ALLOCATED ELEMENTS
.Bl -tag -width WANTPARENT