bin/78021: sem_open(3) doesn't mention fnctl.h include
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
Content-Type: text/plain; charset=us-ascii
On Thu, Feb 24, 2005 at 02:04:47PM +0000, Robert Watson wrote:
> 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=
> which are defined in fcntl.h.
> The fix is either to document the include dependency, or remove it, perha=
> via a nested include. I don't know which is the right one from a standar=
Inclusion of the <semaphore.h> header may make visible symbols defined in t=
headers <fcntl.h> and <sys/types.h>.
ru at FreeBSD.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-bugs