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


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

The static object

    extern char **environ;

is documented in The Single Unix Specification. So its declaration can be
probably be available by the less inclusive _XOPEN_SOURCE .

See:

http://www.unix-systems.org/onlinepubs/007908799/xsh/environ.html


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