Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 05:08:40 GMT
From:      Lachlan Kang <LCRTRIfFu91c710azO2Y@live.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/142815: [patch] namei(9) required include
Message-ID:  <201001140508.o0E58euf020676@www.freebsd.org>
Resent-Message-ID: <201001140510.o0E5A0Xo059196@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001140508.o0E58euf020676>