From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 21 22:40:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0A03ED09 for ; Wed, 21 Aug 2013 22:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB1E723AC for ; Wed, 21 Aug 2013 22:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7LMe1i0060211 for ; Wed, 21 Aug 2013 22:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7LMe1DV060210; Wed, 21 Aug 2013 22:40:01 GMT (envelope-from gnats) Date: Wed, 21 Aug 2013 22:40:01 GMT Message-Id: <201308212240.r7LMe1DV060210@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jilles Tjoelker Subject: Re: kern/181439: [headers] sys/wait.h is not enough to use waitid(), but kind of should be. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 22:40:02 -0000 The following reply was made to PR kern/181439; it has been noted by GNATS. From: Jilles Tjoelker 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: > [ does not define siginfo_t] POSIX says that shall define siginfo_t and may make visible all symbols from . This means that POSIX requires the application to #include explicitly if it wants to use the constants like SIGCHLD and CLD_EXITED. Therefore, I expect most applications to need an explicit #include anyway. To minimize namespace pollution, it would be best to create a new header that defines siginfo_t and include it from and , or to duplicate the definition. Adding the #include to 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