The following reply was made to PR kern/181439; it has been noted by GNATS.
From: Jilles Tjoelker <[email protected]> To: [email protected], [email protected] 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 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
