Date: Mon, 30 Apr 2007 16:56:18 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib getenv.3 getenv.c putenv.c setenv.c Message-ID: <200704301656.l3UGuIqf048148@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2007-04-30 16:56:18 UTC
FreeBSD src repository
Modified files:
lib/libc/stdlib getenv.3 getenv.c putenv.c setenv.c
Log:
Make putenv() fully conforms to Open Group specs Issue 6
(also IEEE Std 1003.1-2001)
The specs explicitly says that altering passed string
should change the environment, i.e. putenv() directly puts its arg
into environment (unlike setenv() which just copies it there).
It means that putenv() can't be implemented via setenv()
(like we have before) at all. Putenv() value lives (allows modifying)
up to the next putenv() or setenv() call.
Revision Changes Path
1.23 +13 -6 src/lib/libc/stdlib/getenv.3
1.7 +5 -2 src/lib/libc/stdlib/getenv.c
1.5 +34 -12 src/lib/libc/stdlib/putenv.c
1.13 +6 -6 src/lib/libc/stdlib/setenv.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704301656.l3UGuIqf048148>
