Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 22:40:01 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/181439: [headers] sys/wait.h is not enough to use waitid(),  but kind of should be.
Message-ID:  <201308212240.r7LMe1DV060210@freefall.freebsd.org>

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

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, xnox@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



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