summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/setenv.c
AgeCommit message (Expand)Author
2021-08-12fix typos in "environment" word.andvar
2015-01-20Fix non _REENTRANT build.christos
2010-11-14Improve and simplify implementation of *env(3) functions:tron
2010-11-03Handle the case where a program attempted to cleanup the environment bychristos
2010-10-16Make setenv(3) follow the standard, by rejecting invalid strings. Itnjoly
2010-10-02Restore binary compatibility with applications which use putenv(3)tron
2010-10-01make putenv POSIX compliant.christos
2010-09-30Be slightly more careful about freeing memory allocated for environmenttron
2010-09-25Remember the correct pointer which we will free later.tron
2010-09-25Remember memory used by allocated environment variables instead oftron
2010-09-24Fix memory leaks; thanks Enami!christos
2010-09-23Use a bit array to keep track of malloced environment entries so we canchristos
2010-09-23PR/43899: Nicolas Joly: setenv(3)/unsetenv(3) memory leak.christos
2009-12-02Retain old variables when failed to allocate memory.enami
2008-11-01use the right variable in memcpy.christos
2008-10-31make __findenv return the offset for the new entry to be inserted whenchristos
2005-02-17remove extraneous `*' that caused a core-dump.christos
2005-02-17do some manual CSE.christos
2005-02-17Fix lint warning caused by last change.tron
2005-02-17Jump to just before the copy instead of after it. Saves 8 byte on i386.enami
2005-02-17Simplify, KNF and plug leaks. Compile test only.enami
2005-02-17Simplify and KNF. Instead of keeping track if the pointer was allocated,christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-04-071003.1-2001 has introduced unsetenv() which differs from the currentkleink
2003-01-18Merge the nathanw_sa branch.thorpej
2002-11-11Fix signed/unsigned comparison warnings.thorpej
2000-12-20avoid nested extern declarationchristos
2000-01-22Delint.mycroft
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
1998-11-15delintchristos
1998-09-11Add a multiple-reader/single-writer lock to protect environ.kleink
1998-08-10bzero->memset, bcopy->memcpy, bcmp->memcmpperry
1998-02-03remove obsolete register declarationsperry
1998-01-30update to lite-2perry
1997-07-21If port provides __weak_alias(), provide an Standard C and POSIX purejtc
1997-07-13Add local.h for local prototypes.christos
1995-12-28New-style RCS ids.thorpej
1995-06-14add explicit return typejtc
1995-02-28remove unneeded "#include <stddef.h>"jtc
1993-10-15Rename _findenv() to __findenv(), as _findenv is in the user's namespace.jtc
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-04-18Eliminate GCC 2 warning due to prototype not being in scope.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd