From owner-freebsd-doc@FreeBSD.ORG Thu Jan 14 05:10:01 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74ABD106566B for ; Thu, 14 Jan 2010 05:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 371F58FC12 for ; Thu, 14 Jan 2010 05:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0E5A0Xu059197 for ; Thu, 14 Jan 2010 05:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0E5A0Xo059196; Thu, 14 Jan 2010 05:10:00 GMT (envelope-from gnats) Resent-Date: Thu, 14 Jan 2010 05:10:00 GMT Resent-Message-Id: <201001140510.o0E5A0Xo059196@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lachlan Kang Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5958E106566B for ; Thu, 14 Jan 2010 05:08:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 132438FC08 for ; Thu, 14 Jan 2010 05:08:41 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0E58ebS020683 for ; Thu, 14 Jan 2010 05:08:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o0E58euf020676; Thu, 14 Jan 2010 05:08:40 GMT (envelope-from nobody) Message-Id: <201001140508.o0E58euf020676@www.freebsd.org> Date: Thu, 14 Jan 2010 05:08:40 GMT From: Lachlan Kang To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/142815: [patch] namei(9) required include X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 05:10:01 -0000 >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: