This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: environ and -D_GNU_SOURCE
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: environ and -D_GNU_SOURCE
- From: Andreas Jaeger <aj at suse dot de>
- Date: 18 May 2000 13:12:48 +0200
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu, Wolfgang Sourdeau <wolfgang at ultim dot net>
- References: <Pine.LNX.4.10.10005171112590.18557-100000@ashi.FootPrints.net>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
>>>>> Kaz Kylheku writes:
Kaz> On 17 May 2000, Andreas Jaeger wrote:
>> environ is not part of any standard AFAIK - and therefore you need
>> _GNU_SOURCE. If it would be, you would get it via one of the other
Kaz> The static object
Kaz> extern char **environ;
Kaz> is documented in The Single Unix Specification. So its declaration can be
Kaz> probably be available by the less inclusive _XOPEN_SOURCE .
Kaz> See:
Kaz> http://www.unix-systems.org/onlinepubs/007908799/xsh/environ.html
I checked again. The variable is available but not visible - the user
has to declare it.
This isn't really clear from the Single Unix Specification (it doesn't
mention a header!) but clarified in the rationale of the latest Austin
Draft.
I'll take no further action on this.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de