standards/187378: stdlib.h doesn't define W* macros (e.g. WEXITSTATUS)
Peter Pentchev
roam at ringlet.net
Tue Mar 11 16:40:02 UTC 2014
The following reply was made to PR standards/187378; it has been noted by GNATS.
From: Peter Pentchev <roam at ringlet.net>
To: Roman Bogorodskiy <novel at FreeBSD.org>
Cc: bug-followup at 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 at 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 <sys/wait.h> 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 at ringlet.net roam at FreeBSD.org p.penchev at 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--
More information about the freebsd-standards
mailing list