[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc putenv portability
From: |
Akim Demaille |
Subject: |
Re: doc putenv portability |
Date: |
Mon, 13 Oct 2003 10:56:18 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
> * autoconf.texi (Function Portability): Add putenv and unsetenv.
> `putenv'
> POSIX specifies that `putenv' puts the given string directly in
> `environ', but some systems make a copy of it instead (eg. glibc
> 2.0, or BSD). And when a copy is made, `unsetenv' might not free
> it, causing a memory leak (eg. FreeBSD 4).
> POSIX specifies that `putenv("FOO")' removes `FOO' from the
> environment, but on some systems (eg. FreeBSD 4) this is not the
> case and instead `unsetenv' must be used.
> On MINGW, a call `putenv("FOO=")' removes `FOO' from the
> environment, rather than inserting it with an empty value.
> `unsetenv'
> On MINGW, `unsetenv' is not available, but a variable `FOO' can be
> removed with a call `putenv("FOO=")', as described under `putenv'
> above.
Please, install. Thanks!