freebsd-nq/usr.sbin/sade
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 Another update for reality: "dangerously dedicated" mode is now 2006-02-06 00:06:39 +00:00
command.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
config.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
devices.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
disks.c Unbreak sparc64 build. 2006-08-09 08:24:46 +00:00
dispatch.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
dmenu.c Remove the keymap stuff too, it is not needed in sade. 2006-08-09 11:25:10 +00:00
globals.c Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part 2006-08-07 23:35:49 +00:00
install.c Partitions are only meaningful for i386 and amd64 architectures, so disable 2006-08-08 14:28:03 +00:00
label.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
list.h Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part 2006-08-07 23:35:49 +00:00
main.c Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
Makefile Remove the keymap stuff too, it is not needed in sade. 2006-08-09 11:25:10 +00:00
menus.c Fix PC98 build. 2006-08-09 05:33:45 +00:00
misc.c Partitions are only meaningful for i386 and amd64 architectures, so disable 2006-08-08 14:28:03 +00:00
msg.c Make sade(8) WARNS=3 clean. 2006-08-08 13:45:46 +00:00
sade.8 Revise markup. 2006-09-30 19:07:03 +00:00
sade.h Remove the keymap stuff too, it is not needed in sade. 2006-08-09 11:25:10 +00:00
system.c Get rid of the rtermcap stuff (embedding termcaps into the program). This 2006-08-09 09:12:01 +00:00
termcap.c Use sizeof() for calculating the buffer size instead of hard-coded values. 2007-03-06 09:32:41 +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 Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part 2006-08-07 23:35:49 +00:00