docs/78171: Incorrect macro name in namei.9

Wojciech A. Koszek dunstan at freebsd.czest.pl
Mon Feb 28 00:10:11 UTC 2005


>Number:         78171
>Category:       docs
>Synopsis:       Incorrect macro name in namei.9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 28 00:10:10 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Wojciech A. Koszek
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD dunstan.freebsd.czest.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #10: Sat Feb 26 23:44:07 CET 2005 dunstan at dunstan.freebsd.czest.pl:/usr/obj/usr/src/sys/HOME7 i386

>Description:
There is no ND_NO_FREE_PNBUF macro. Should be NDF_NO_FREE_PNBUF. Attached
patch [diff.0.namei.9] corrects this mistake in namei.9.
>How-To-Repeat:
There is no ND_NO_FREE_PNBUF:

% man namei | grep ND_
                      buffer intact, the ND_NO_FREE_PNBUF flag can be passed
% find /usr/include -exec grep -H ND_NO_FREE_PNBUF '{}' \;
%

There is NDF_NO_FREE_PNBUF:
% grep NDF_NO_FREE_PNBUF /usr/include/sys/namei.h
#define NDF_NO_FREE_PNBUF       0x00000020
#define NDF_ONLY_PNBUF          (~NDF_NO_FREE_PNBUF)


>Fix:

--- diff.0.namei.9 begins here ---

Patch against FreeBSD 5.4-PRERELEASE, kern.osreldate: 503102.

diff -upr /usr/src/share/man/man9/namei.9 src/share/man/man9/namei.9
--- /usr/src/share/man/man9/namei.9	Thu Jul 29 20:57:39 2004
+++ src/share/man/man9/namei.9	Mon Feb 28 00:05:42 2005
@@ -283,7 +283,7 @@ flag can be passed to the
 function.
 To keep the pathname buffer intact,
 the
-.Dv ND_NO_FREE_PNBUF
+.Dv NDF_NO_FREE_PNBUF
 flag can be passed to the
 .Fn NDFREE
 function.
--- diff.0.namei.9 ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list