Home | History | Annotate | only in /src/lib/libc/compat/stdlib
History log of /src/lib/libc/compat/stdlib
RevisionDateAuthorComments
 1.4 12-Jun-2014  christos fix srandom and initstate signatures (from enh at google)
 1.3 20-Apr-2012  christos branches: 1.3.2; 1.3.8;
PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
 1.2 11-Mar-2006  christos branches: 1.2.44; 1.2.46;
Add glue to build the compat library as a separate "libcold" turned off by
default. Clean up the libc Makefile and remove obsolete stuff such as copy
to libkern.
 1.1 13-Sep-2005  christos compat core reorg.
 1.2.46.1 07-May-2012  riz Pull up following revision(s) (requested by christos in ticket #222):
include/stdlib.h: revision 1.98
lib/libc/compat/stdlib/Makefile.inc: revision 1.3
lib/libc/compat/include/stdlib.h: revision 1.5
lib/libc/compat/stdlib/compat_putenv.c: revision 1.1
lib/libc/compat/stdlib/compat_putenv.c: revision 1.2
PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
use setenv so that we don't leak memory.
 1.2.44.1 23-May-2012  yamt sync with head.
 1.3.8.1 10-Aug-2014  tls Rebase.
 1.3.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 20-Jan-2015  christos Fix non _REENTRANT build.
 1.2 22-Apr-2012  christos branches: 1.2.2; 1.2.4;
use setenv so that we don't leak memory.
 1.1 20-Apr-2012  christos PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
 1.2.4.2 23-May-2012  yamt sync with head.
 1.2.4.1 22-Apr-2012  yamt file compat_putenv.c was added on branch yamt-pagecache on 2012-05-23 10:07:30 +0000
 1.2.2.2 07-May-2012  riz Pull up following revision(s) (requested by christos in ticket #222):
include/stdlib.h: revision 1.98
lib/libc/compat/stdlib/Makefile.inc: revision 1.3
lib/libc/compat/include/stdlib.h: revision 1.5
lib/libc/compat/stdlib/compat_putenv.c: revision 1.1
lib/libc/compat/stdlib/compat_putenv.c: revision 1.2
PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
use setenv so that we don't leak memory.
 1.2.2.1 22-Apr-2012  riz file compat_putenv.c was added on branch netbsd-6 on 2012-05-07 16:47:22 +0000
 1.3 20-Jan-2015  christos Fix non _REENTRANT build.
 1.2 12-Jun-2014  christos branches: 1.2.2; 1.2.6;
rename to 60
 1.1 12-Jun-2014  christos fix srandom and initstate signatures (from enh at google)
 1.2.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.6.1 12-Jun-2014  tls file compat_random.c was added on branch tls-maxphys on 2014-08-20 00:02:14 +0000
 1.2.2.2 10-Aug-2014  tls Rebase.
 1.2.2.1 12-Jun-2014  tls file compat_random.c was added on branch tls-earlyentropy on 2014-08-10 06:51:50 +0000
 1.4 20-Jan-2015  christos Fix non _REENTRANT build.
 1.3 14-Nov-2010  tron Improve and simplify implementation of *env(3) functions:
- Use RB tree to keep track of memory allocated via setenv(3) as
suggested by Enami Tsugutomo in private e-mail.
This simplifies the code a lot as we no longer need to keep the size
of "environ" in sync with an array of allocated environment variables.
It also makes it possible to free environment variables in unsetenv(3)
if something has changed the order of the "environ" array.
- Fix a bug in getenv(3) and getenv_r(3) which would return bogus
results e.g. for " getenv("A=B") " if an environment variable "A"
with value "B=C" exists.
- Clean up the internal functions:
- Don't expose the read/write lock for the environment to other parts
of "libc". Provide locking functions instead.
- Use "bool" to report success or failure.
- Use "ssize_t" or "size_t" instead of "int" for indexes.
- Provide internal functions with simpler interfaces e.g. don't
combine return values and reference arguments.
- Don't copy "environ" into an allocated block unless we really need
to grow it.

Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by
Joerg Sonnenberger and me. These changes also fix problems in
zsh 4.3.* and pam_ssh according to Joerg.
 1.2 23-Sep-2010  christos Use a bit array to keep track of malloced environment entries so we can
free them.
 1.1 13-Sep-2005  christos compat core reorg.

RSS XML Feed