Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 22:20:25 GMT
From:      Ruslan Ermilov <ru@freebsd.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/78021: sem_open(3) doesn't mention fnctl.h include requirement
Message-ID:  <200502242220.j1OMKPCV019525@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/78021; it has been noted by GNATS.

From: Ruslan Ermilov <ru@freebsd.org>
To: Robert Watson <rwatson@freebsd.org>
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 <semaphore.h> header may make visible symbols defined in t=
 he
 headers <fcntl.h> and <sys/types.h>.
 """
 
 
 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--



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