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
>>>>> Wolfgang Sourdeau writes:
Andreas> environ is not part of any standard AFAIK - and therefore you need
Andreas> _GNU_SOURCE. If it would be, you would get it via one of the other
Andreas> feature test macros. We can't allow it without any feature test
Andreas> macro, since this would violate standards like ISO C or POSIX that not
Andreas> only specify what has to be in a header - but also forbid anything
Andreas> else.
> Ok. But then it would be interesting to put this in the docs, since I
> had to look at the headers to find the solution...
Feel free to send a patch for the documentation if you think something
is missing.
Either use the glibcbug script or send an email to
libc-alpha@sourceware.cygnus.com.
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de