bin/78021: sem_open(3) doesn't mention fnctl.h include
bde at zeta.org.au
Thu Feb 24 19:35:48 GMT 2005
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().
More information about the freebsd-bugs