freebsd-nq/usr.sbin
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
..
ac
accton
acpi Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
adduser Bump .Dd for r1.5; fix grammatical problem. 2007-04-12 08:39:13 +00:00
amd
ancontrol
apm
apmd
arlcontrol
arp
asf
atm
audit
auditd
auditreduce
authpf
bluetooth Add `accept dns' to rfcomm-server example 2007-05-13 18:59:22 +00:00
boot0cfg "-b /boot/mbr" is redundant, /boot/mbr is the default boot code for fdisk(8). 2007-06-07 07:43:04 +00:00
boot98cfg
bootparamd
bsnmpd Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
btxld
burncd
cached
cdcontrol
chkgrp
chown
chroot
ckdist
config Fix some problems that affect multiple file inclusion. Bruce found 2007-05-17 04:53:52 +00:00
cron Add PAM support to cron(8). Now cron(8) will skip commands scheduled 2007-06-17 17:25:53 +00:00
crunch
ctm
cxgbtool
daemon Unbreak rev 1.7's getopt usage. The -f switch does not take an argument. 2007-04-19 16:43:30 +00:00
dconschat - Add an option to change escape character. 2007-06-15 12:09:16 +00:00
devinfo
digictl
diskinfo Print provider's ident when in verbose mode. 2007-05-06 00:25:21 +00:00
dnssec-keygen Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
dnssec-signzone Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
editmap
edquota
eeprom
extattr
extattrctl
faithd
fdcontrol
fdformat
fdread
fdwrite
flowctl
freebsd-update Add some missing '${BASEDIR}/'s. Prior to this commit, FreeBSD Update 2007-05-16 15:20:51 +00:00
ftp-proxy Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
fwcontrol Increase buffer size of DV stream to prevent buffer 2007-06-17 10:20:55 +00:00
getfmac
getpmac
gstat
i4b
ifmcstat Options spring cleanup: 2007-06-13 02:08:04 +00:00
inetd Commit IPv6 support for FAST_IPSEC to the tree. 2007-07-01 12:08:08 +00:00
iostat o Re-indent long lines. 2007-05-14 18:04:07 +00:00
ip6addrctl
ipfwpcap
IPXrouted
jail Bump date. 2007-04-05 21:17:52 +00:00
jexec
jls
kbdcontrol
kbdmap
kernbb
keyserv
kgmon
kgzip
kldxref
lastlogin
lmcconfig
lpr
lptcontrol
mailstats
mailwrapper
makemap
manctl
memcontrol
mergemaster
mixer o Add "line" device to a list of mixer(8) devices. 2007-05-09 05:33:54 +00:00
mld6query
mlxcontrol
mount_nwfs
mount_portalfs
mount_smbfs
mountd Fatal error is only when cannot open any of the given exports files. 2007-04-13 10:25:49 +00:00
moused Fix a (very) longstanding bug in moused(8) affecting high-resolution rodents 2007-06-17 20:27:54 +00:00
mptable
mtest Import rewrite of IPv4 socket multicast layer to support source-specific 2007-06-12 16:24:56 +00:00
mtree o Add an example how to create /etc/mtree style mtree(8) files. 2007-06-16 08:26:00 +00:00
named Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
named-checkconf Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
named-checkzone Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
named.reload
ndiscvt
ndp
newsyslog
nfsd
ngctl
nghook
nologin Update nologin(5) to match the modern reality of login.conf(5) and PAM. 2007-05-10 11:22:24 +00:00
nscd
ntp Delete description of non-existent options: "-4" and "-6". 2007-06-12 13:28:55 +00:00
nvram
ofwdump
pccard Correct two typos 2007-05-12 12:42:00 +00:00
pciconf - HT 2.00b added a new flag to the MSI mapping HT capability to indicate 2007-04-25 14:45:46 +00:00
periodic Add an option to make periodic(8) quiet when no output was generated. 2007-06-22 10:04:05 +00:00
pkg_install - Replace rather inefficient bubble sort with a recursive depth-first search. 2007-06-18 22:49:13 +00:00
pmccontrol
pmcstat MFP4: Enhancements to pmcstat(8): 2007-04-27 12:09:31 +00:00
pnpinfo
portsnap Add support for HTTP/1.0 Persistent Connections to phttpget. Requests are 2007-06-30 19:48:28 +00:00
powerd Failing to set new frequency should not lead to powerd exiting. 2007-06-13 19:05:11 +00:00
ppp Cleanup after previous commit. 2007-05-25 16:05:17 +00:00
pppctl
pppd
pppstats
praliases
praudit
procctl
pstat Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
pw Do the right thing with symlinks in the skeleton directory. 2007-03-30 13:18:52 +00:00
pwd_mkdb
quot
quotaon
rarpd
raycontrol
repquota
rip6query
rmt
rndc Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
rndc-confgen Update bmake glue for the BIND 9.4.1 import. 2007-06-02 23:19:58 +00:00
route6d
rpc.lockd - Fix compilaton with DUMP_FILELOCK_VERBOSE. 2007-04-12 02:07:12 +00:00
rpc.statd Add the "-p" option, which allows to specify a port which the daemon 2007-04-03 21:15:00 +00:00
rpc.umntall
rpc.yppasswdd
rpc.ypupdated
rpc.ypxfrd
rpcbind Remove a comment I forgot to remove 2007-06-09 09:20:22 +00:00
rrenumd Commit IPv6 support for FAST_IPSEC to the tree. 2007-07-01 12:08:08 +00:00
rtadvd
rtprio
rtsold
rwhod
sa Set .PATH before referring to the corresponding sources. 2007-05-22 10:49:42 +00:00
sade Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
sendmail This FFR is no longer needed in sendmail 8.14 2007-04-09 01:45:52 +00:00
setfmac
setpmac
sicontrol
sliplogin
slstat
smbmsg
snapinfo
spkrtest
spray
sysinstall Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
syslogd
tcpdchk
tcpdmatch
tcpdrop
tcpdump
timed
traceroute
traceroute6 Commit IPv6 support for FAST_IPSEC to the tree. 2007-07-01 12:08:08 +00:00
trpt
tzsetup
ugidfw
usbdevs
vidcontrol
vipw
watch
watchdogd
wlandebug o add 11n knob 2007-06-11 04:05:15 +00:00
wlconfig
wpa track net80211 changes to get scan results ioctl 2007-06-11 03:57:46 +00:00
yp_mkdb
ypbind
yppoll
yppush
ypserv
ypset
zic
zzz
Makefile Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
Makefile.inc