bin/78021: sem_open(3) doesn't mention fnctl.h include requirement

Ruslan Ermilov ru at freebsd.org
Thu Feb 24 22:20:25 GMT 2005


The following reply was made to PR bin/78021; it has been noted by GNATS.

From: Ruslan Ermilov <ru at freebsd.org>
To: Robert Watson <rwatson at freebsd.org>
Cc: FreeBSD-gnats-submit at 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 at 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--


More information about the freebsd-bugs mailing list