From owner-freebsd-standards@FreeBSD.ORG Tue Mar 11 16:40:02 2014 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1FF884F9 for ; Tue, 11 Mar 2014 16:40:02 +0000 (UTC) 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 00E05C34 for ; Tue, 11 Mar 2014 16:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2BGe1NF031030 for ; Tue, 11 Mar 2014 16:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2BGe1J9031029; Tue, 11 Mar 2014 16:40:01 GMT (envelope-from gnats) Date: Tue, 11 Mar 2014 16:40:01 GMT Message-Id: <201403111640.s2BGe1J9031029@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: standards/187378: stdlib.h doesn't define W* macros (e.g. WEXITSTATUS) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Peter Pentchev List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 16:40:02 -0000 The following reply was made to PR standards/187378; it has been noted by GNATS. From: Peter Pentchev To: Roman Bogorodskiy Cc: bug-followup@freebsd.org Subject: Re: standards/187378: stdlib.h doesn't define W* macros (e.g. WEXITSTATUS) Date: Tue, 11 Mar 2014 18:24:43 +0200 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 08, 2014 at 05:18:34PM +0000, Roman Bogorodskiy wrote: >=20 > >Number: 187378 > >Category: standards > >Synopsis: stdlib.h doesn't define W* macros (e.g. WEXITSTATUS) > >Release: FreeBSD 11.0-CURRENT amd64 > >Organization: > >Environment: > System: FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0= r262685: Sun Mar 2 11:35:38 UTC 2014 peter@freefall.freebsd.org:/usr/obj/u= sr/src/sys/FREEFALL amd64 >=20 >=20 > >Description: > As per this document: >=20 > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html >=20 > stdlib.h should define W* macros like WEXITSTATUS etc. However, it doesn'= t. FWIW, this is even documented in FreeBSD's stdlib.h :) /* XXX XSI requires pollution from here. We'd rather not. */ Yes, I know this doesn't help you much; I'm just trying to point out that, well, this is not an accidental omission, but a deliberate design decision. For the reasons for it you'll have to ask the people who did it - this particular text seems to have been added by Garrett Wollman back in 2002, but I think that he was just documenting the status quo rather than making a decision right there and then. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org p.penchev@storpool.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 This sentence claims to be an Epimenides paradox, but it is lying. --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJTHzjFAAoJEGUe77AlJ98TNqsQAJ7NHp9017FoScKycpvoPlCi wqzMMlT4gMLRSzg11BQTMVUjH4fG1Rk4q9Hy3aUJdII2G1lfG6prz2U6mOwmUxOr Gjn3ex0/stukIdQfIWMPjxcNZQ4CWTkg8bfsE8Izn3t38WmeOayzURrBE0PKYc1G B6IO7C1ndX2Sfpehoty+VGryWeo6PByWzh/H99NHPPvvTXYLgDKfrsuDKcIO/923 ejod5jExz81dVqNoNCf90F6C/KmJVVHayq2ApYOYzoKjFuh4wISdr8kHOnLQu0Aa O9lv3n92CJx9I8GxZqX9dlxjYOtzHir3Pjnu5Jx3wXZiRYzp2lUQ2Mj6ml0zffnk bJS8OEUWNie1tGLH3RLGQUsVRWLFhwe47iOmxa6wtdRAY+V3//sWFIoE3XBLwoQj bJF5x6Lx6mE+AD1lKgFmZdX2OhP0CjanCJ0qWsWTQjF21yuz8PKN2qQMLsGqpGky kwtd3evKeZtO1w48WcSbZ9KrAi0F8iH5Pi4sJ2y7ni6Y+/hKl5sjDBJiUU6AQejy 8WINjjtj7+z6GZ5PcjAF4rPI8F5K9e6EhZo5trd6mBYJ1OM5XZa/cziaT6w3w2Eb Yr3aRoV2Sby4I5HM5LOdcxrGhr3668kamyihPWRgfJIOdLGOSkUHJuq5BAJRWgUL 6KdKm822hGpfgmA9rAff =kj6X -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--