freebsd-dev/usr.sbin/sysinstall
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
..
help Fix a number of documentation-lags-behind-reality bugs in sysinstall(8). 2007-06-25 16:37:17 +00:00
acpi.c
acpidump.h
anonFTP.c Create group ftp by default. This is gid 14 as this is the historical 2007-06-11 18:36:39 +00:00
biosmptable.c Make sysinstall's code WARNS=2 clean . 2007-03-23 19:57:27 +00:00
cdrom.c If floppies are used to boot the machine, the user lets the machine 2007-02-22 20:29:53 +00:00
command.c
config.c Update postfix MTA selection code to point at postfix 2.4 which is the 2007-04-05 10:23:30 +00:00
devices.c One more s/ethernet/Ethernet/ I missed in the previous revision. 2007-03-19 16:36:34 +00:00
dhcp.c
disks.c
dispatch.c
dist.c Teach sysinstall about the 'scddl' source dist. 2007-06-28 18:27:29 +00:00
dist.h Teach sysinstall about the 'scddl' source dist. 2007-06-28 18:27:29 +00:00
dmenu.c
doc.c
dos.c
floppy.c
ftp.c
globals.c
http.c
index.c - Add new virtual category kld 2007-06-28 17:42:20 +00:00
install.c Fix a number of documentation-lags-behind-reality bugs in sysinstall(8). 2007-06-25 16:37:17 +00:00
install.cfg Bring these files up-to-date. 2007-02-18 22:41:41 +00:00
installUpgrade.c Write to slice name instead of directly to the disk device. 2007-06-05 05:44:41 +00:00
keymap.c
label.c
list.h
main.c Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
Makefile remove WARNS=2: we're not ready for it yet. 2007-03-23 22:09:02 +00:00
media.c
menus.c Remove reference to 'phosphor' in the screensaver menu as this is less 2007-06-29 20:24:57 +00:00
misc.c
modules.c
mouse.c
msg.c
network.c
nfs.c
options.c
package.c
pccard.c
rtermcap.c
sysinstall.8 Fix a number of documentation-lags-behind-reality bugs in sysinstall(8). 2007-06-25 16:37:17 +00:00
sysinstall.h Fix a number of documentation-lags-behind-reality bugs in sysinstall(8). 2007-06-25 16:37:17 +00:00
system.c Fix a number of documentation-lags-behind-reality bugs in sysinstall(8). 2007-06-25 16:37:17 +00:00
tape.c
tcpip.c Tighten IP address check, prevent '..' from being passed 2007-05-17 06:08:42 +00:00
termcap.c Use sizeof() for calculating the buffer size instead of hard-coded values. 2007-03-06 09:32:41 +00:00
ttys.c
ufs.c
user.c
variable.c Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
wizard.c