docs/142815: [patch] namei(9) required include
Lachlan Kang
LCRTRIfFu91c710azO2Y at live.co.uk
Thu Jan 14 05:10:01 UTC 2010
>Number: 142815
>Category: docs
>Synopsis: [patch] namei(9) required include
>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: Thu Jan 14 05:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Lachlan Kang
>Release: FreeBSD 8.0-RELEASE
>Organization:
>Environment:
>Description:
namei(9) should specify under SYNOPSIS that sys/fcntl.h needs to be included.
The macro NDINIT which is described in namei(9), uses the value AT_FDCWD, which is defined in sys/fcntl.h.
If a program that uses NDINIT() is written and it does not include sys/fcntl.h, then it will not be able to compile.
>How-To-Repeat:
man 9 namei
>Fix:
Just add sys/fcntl.h as one of the required includes under SYNOPSIS.
Patch attached with submission follows:
Index: head/share/man/man9/namei.9
===================================================================
--- head/share/man/man9/namei.9 (revision 202273)
+++ head/share/man/man9/namei.9 (working copy)
@@ -46,6 +46,7 @@
.In sys/param.h
.In sys/proc.h
.In sys/namei.h
+.In sys/fcntl.h
.Ft int
.Fn namei "struct nameidata *ndp"
.Ft void
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list