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 _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"