freebsd-dev/lib/libc
Sean Farley 2966d28c32 Significantly reduce the memory leak as noted in BUGS section for
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.

Convert all calls to POSIX from historic BSD API:
 - unsetenv returns an int.
 - putenv takes a char * instead of const char *.
 - putenv no longer makes a copy of the input string.
 - errno is set appropriately for POSIX.  Exceptions involve bad environ
   variable and internal initialization code.  These both set errno to
   EFAULT.

Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit.  A few I re-wrote to use setenv()
instead of putenv().

New regression module for tools/regression/environ to test these
functions.  It also can be used to test the performance.

Bump __FreeBSD_version to 700050 due to API change.

PR:		kern/99826
Approved by:	wes
Approved by:	re (kensmith)
2007-07-04 00:00:41 +00:00
..
amd64 Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
arm Fix sbrk.S to use _end symbol the same way brk.s was fixed some time 2007-06-27 02:45:37 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db The usage of "info" in init_hash() is read-only, so constify 2007-05-25 09:57:48 +00:00
gdtoa Fix a rounding error. 2007-05-08 02:59:37 +00:00
gen Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
ia64 Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
include Merge BIND 9.4.1 into main chunk. 2007-06-03 18:13:59 +00:00
inet Require users to provide a length information for inet_ntoa_r, 2007-06-14 07:13:28 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale - Fix typo 2007-05-04 16:01:07 +00:00
nameser Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
net - Removes some incorrect error returns (errno was being overriden in 2007-07-02 10:52:34 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
powerpc Fix bogon in previous commit: <machine/cpu.h> is still needed. 2007-06-10 16:32:08 +00:00
quad Export quad symbols. They were previously commented out. These symbols 2007-05-31 13:07:37 +00:00
regex Diff reduction against other *BSDs: ANSIfy function 2007-06-11 03:05:54 +00:00
resolv Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
rpc Use an array of size NGROUP_MAX for the getgroups() call instead of NGRP. 2007-06-14 20:07:35 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
stdio Add rewind() to the list of functions which may fail and set errno 2007-06-18 02:13:04 +00:00
stdlib Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
stdtime Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
string Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sys Fix library names. 2007-06-18 01:50:03 +00:00
uuid Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
xdr Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
yp Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
Makefile Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS 2007-05-19 16:38:39 +00:00
Versions.def Make sure FBSDprivate_1.0 is located at the end of the version 2007-04-29 16:14:17 +00:00