This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: environ and -D_GNU_SOURCE


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]