From fb0fde7de8d24679c0f55e4cebfa2004a181ec11 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Sun, 14 Mar 2010 09:06:30 +0000 Subject: [PATCH] nlookup.9 - document nlookup_init_root --- share/man/man9/Makefile | 1 + share/man/man9/nlookup.9 | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 321322cc55..37779d9d7b 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -525,6 +525,7 @@ MLINKS+=nlookup.9 naccess.9 \ nlookup.9 nlookup_done.9 \ nlookup.9 nlookup_init.9 \ nlookup.9 nlookup_init_raw.9 \ + nlookup.9 nlookup_init_root.9 \ nlookup.9 nlookup_mp.9 \ nlookup.9 nlookup_set_cred.9 \ nlookup.9 nlookup_simple.9 \ diff --git a/share/man/man9/nlookup.9 b/share/man/man9/nlookup.9 index ad46286650..106a831ce5 100644 --- a/share/man/man9/nlookup.9 +++ b/share/man/man9/nlookup.9 @@ -30,13 +30,14 @@ .\" .\" $DragonFly: src/share/man/man9/nlookup.9,v 1.11 2008/02/09 09:45:03 swildner Exp $ .\" -.Dd May 26, 2009 +.Dd March 14, 2010 .Os .Dt NLOOKUP 9 .Sh NAME .Nm nlookup , .Nm nlookup_init , .Nm nlookup_init_raw , +.Nm nlookup_init_root , .Nm nlookup_set_cred , .Nm nlookup_zero , .Nm nlookup_done , @@ -55,6 +56,8 @@ .Fn nlookup_init "struct nlookupdata *nd" "const char *path" "enum uio_seg seg" "int flags" .Ft int .Fn nlookup_init_raw "struct nlookupdata *nd" "const char *path" "enum uio_seg seg" "int flags" "struct ucred *cred" "struct namecache *ncstart" +.Ft int +.Fn nlookup_init_root "struct nlookupdata *nd" "const char *path" "enum uio_seg seg" "int flags" "struct ucred *cred" "struct namecache *ncstart" "struct namecache *ncroot" .Ft void .Fn nlookup_set_cred "struct nlookupdata *nd" "struct ucred *cred" .Ft void @@ -118,6 +121,13 @@ rootncp is always chosen for the root directory and the .Fa cred and starting directory are supplied in the arguments. .Pp +.Fn nlookup_init_root +works similarly to +.Fn nlookup_init_raw +but does not assume rootnch for the root directory. +The root directory is supplied in the arguments, and is also +used for the jail directory. +.Pp .Fn nlookup_set_cred sets a different credential; this credential will be used by future operations performed on nd.nl_open_vp -- 2.11.4.GIT