From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 24 22:20:25 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5332D16A4CE for ; Thu, 24 Feb 2005 22:20:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34F8C43D54 for ; Thu, 24 Feb 2005 22:20:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1OMKPWe019526 for ; Thu, 24 Feb 2005 22:20:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1OMKPCV019525; Thu, 24 Feb 2005 22:20:25 GMT (envelope-from gnats) Date: Thu, 24 Feb 2005 22:20:25 GMT Message-Id: <200502242220.j1OMKPCV019525@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ruslan Ermilov Subject: Re: bin/78021: sem_open(3) doesn't mention fnctl.h include requirement X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ruslan Ermilov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:20:25 -0000 The following reply was made to PR bin/78021; it has been noted by GNATS. From: Ruslan Ermilov To: Robert Watson Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/78021: sem_open(3) doesn't mention fnctl.h include requirement Date: Fri, 25 Feb 2005 00:19:08 +0200 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 24, 2005 at 02:04:47PM +0000, Robert Watson wrote: >=20 > sem_open(3) identifies semaphore.h as an include requirement for sem_open= (); > however, sem_open()'s oflag argument can take on values of O_CREAT or O_E= XCL, > which are defined in fcntl.h. >=20 > ... >=20 > The fix is either to document the include dependency, or remove it, perha= ps > via a nested include. I don't know which is the right one from a standar= ds > perspective. >=20 POSIX says: """ Inclusion of the header may make visible symbols defined in t= he headers and . """ Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCHlLcqRfpzJluFF4RArAUAJ0Tpv2HWMmn9C1KcRMlVfIm5iNe2gCggOy/ OzaEelQRjNPaH3UMpMqqmow= =MQCk -----END PGP SIGNATURE----- --DocE+STaALJfprDB--