freebsd-dev/libexec
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
..
atrun Note PAM support in atrun(8). 2007-06-17 14:02:31 +00:00
bootpd Make tv_sec a time_t on all platforms but alpha. Brings us more in line with 2005-12-24 22:22:17 +00:00
comsat
fingerd
ftpd Remove references to S/Key and list OPIE. 2007-04-20 09:08:20 +00:00
getty Bump document date on behalf of a recent change. 2005-06-14 08:40:10 +00:00
lukemftpd Not needed any more, vendor sources have PAM support. 2006-08-31 17:12:33 +00:00
mail.local Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
makekey
mknetid
pppoed Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
pt_chown
rbootd
revnetgroup
rlogind Cook CFLAGS by the modern recipe: 2006-07-27 12:05:05 +00:00
rpc.rquotad
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rshd Spell SHUT_RDWR as SHUT_RDWR not 1+1 as the how argument to shutdown(2). 2005-05-11 02:41:39 +00:00
rtld-aout
rtld-elf Update the man page to reflect that certain variables will be unset in 2007-05-17 19:14:25 +00:00
save-entropy 1. Attempt to take one bullet out of the foot-shooting gun by silently 2006-08-28 06:41:50 +00:00
smrsh Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
talkd Prevent usage of nested externs. 2005-05-06 15:28:54 +00:00
tcpd Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
telnetd inetd and telnetd are not included in the standard release 2006-07-31 19:15:10 +00:00
tftp-proxy Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
tftpd Correct a typo. 2007-06-03 15:32:06 +00:00
ypxfr
Makefile Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
Makefile.inc