summaryrefslogtreecommitdiffstats
path: root/share/man/man9/namei.9
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-07-23 13:16:36 +0000
committerrwatson <rwatson@FreeBSD.org>2002-07-23 13:16:36 +0000
commitaf83e99c432bb650b3f7b79ae80695fb414a2def (patch)
tree5d7e91b85192efeaab5ad544cc2e7a2a713a18e7 /share/man/man9/namei.9
parentc8ea0e30834a32a861b4b11d028f0c23dfefffc0 (diff)
downloadFreeBSD-src-af83e99c432bb650b3f7b79ae80695fb414a2def.zip
FreeBSD-src-af83e99c432bb650b3f7b79ae80695fb414a2def.tar.gz
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
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 ec64896..6046458 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
OpenPOWER on IntegriCloud