kern/181439: [headers] sys/wait.h is not enough to use waitid(), but kind of should be.
Jilles Tjoelker
jilles at stack.nl
Wed Aug 21 22:40:02 UTC 2013
The following reply was made to PR kern/181439; it has been noted by GNATS.
From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, xnox at debian.org
Cc:
Subject: Re: kern/181439: [headers] sys/wait.h is not enough to use waitid(),
but kind of should be.
Date: Thu, 22 Aug 2013 00:30:50 +0200
In PR kern/181439, you wrote:
> [<sys/wait.h> does not define siginfo_t]
POSIX says that <sys/wait.h> shall define siginfo_t and may make visible
all symbols from <signal.h>.
This means that POSIX requires the application to #include <signal.h>
explicitly if it wants to use the constants like SIGCHLD and CLD_EXITED.
Therefore, I expect most applications to need an explicit #include
<signal.h> anyway.
To minimize namespace pollution, it would be best to create a new header
that defines siginfo_t and include it from <signal.h> and <sys/wait.h>,
or to duplicate the definition.
Adding the #include to <sys/wait.h> would be simpler. If this is the way
it should work, then it would be best to try to change POSIX to allow
only this.
--
Jilles Tjoelker
More information about the freebsd-bugs
mailing list