From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 24 19:35:48 2005 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63CBC16A4CE; Thu, 24 Feb 2005 19:35:48 +0000 (GMT) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id B357643D45; Thu, 24 Feb 2005 19:35:47 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])j1OJZ6A6025464; Fri, 25 Feb 2005 06:35:06 +1100 Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) j1OJZ4S5026506; Fri, 25 Feb 2005 06:35:05 +1100 Date: Fri, 25 Feb 2005 06:35:04 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Robert Watson In-Reply-To: <200502241450.j1OEoZ0d059972@freefall.freebsd.org> Message-ID: <20050225061410.K152@delplex.bde.org> References: <200502241450.j1OEoZ0d059972@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-bugs@freebsd.org Subject: Re: bin/78021: sem_open(3) doesn't mention fnctl.h include X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 19:35:48 -0000 On Thu, 24 Feb 2005, Robert Watson wrote: > Subject: Re: bin/78021: sem_open(3) doesn't mention fnctl.h include > > Just as a follow-up: stat.h is also needed for the S_IW* flags argument, > and the example included is a poor copy-and-paste, the S_IW* flags > argument is needed before the final 0 in a call to sem_open(). Neither of these is needed in the synopsis. The synopsis should document minimal requirements for using the functions, not all uses. Both POSIX.1 and FreeBSD do this correctly for sem_open(). Bruce