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 Revamp base system packaging of kernels to enable up/smp selection 2006-03-08 18:02:32 +00:00
acpidump.h Revamp base system packaging of kernels to enable up/smp selection 2006-03-08 18:02:32 +00:00
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 When using sysinstall on a running system and editing a disk label 2006-10-08 21:16:00 +00:00
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 Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
doc.c
dos.c
floppy.c
ftp.c
globals.c
http.c Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
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 - Use jp.pc98 as default keymap for pc98. 2006-03-16 15:50:21 +00:00
label.c Increase USR_MIN_SIZE to 160 because it requires more disk space. 2006-11-28 11:48:34 +00:00
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 Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
menus.c Remove reference to 'phosphor' in the screensaver menu as this is less 2007-06-29 20:24:57 +00:00
misc.c Add FreeBSD version information to the menu title so it's possible to 2006-07-15 12:23:56 +00:00
modules.c
mouse.c
msg.c
network.c Actually fix the DHCP handling, by using more robust detection of DHCP 2006-02-09 14:43:42 +00:00
nfs.c
options.c Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
package.c Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
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 Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00
variable.c Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
wizard.c Fix numerous warnings. Aside from menu items in system.c and menu.c 2006-02-28 21:49:33 +00:00