freebsd-nq/bin
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
..
cat One more nit. 2006-12-23 09:25:23 +00:00
chflags Fix probably copy&paste from chmod(1) - we change file flags here, not mode. 2007-05-28 04:23:09 +00:00
chio Don't specify SRCS= when it can be obtained from PROGS= 2005-01-27 13:25:09 +00:00
chmod - Mention umask(2) when first referring to it. 2006-12-22 07:28:38 +00:00
cp Fix typo. 2006-11-02 19:10:05 +00:00
csh Work around a vendor issue that was causing the builtin malloc to be 2007-05-16 21:22:38 +00:00
date Correct the referenced securelevel document, it's now securelevel 7. 2007-06-02 20:15:59 +00:00
dd More inactive maintainers. 2006-07-09 21:47:37 +00:00
df Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
domainname Use a standard section name. 2006-12-18 15:45:01 +00:00
echo Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
ed Don't include encryption features of ed(1) when building for the 2007-07-02 14:00:25 +00:00
expr Fix markup. 2007-03-04 19:52:07 +00:00
getfacl Markup fixes. 2006-09-17 17:40:07 +00:00
hostname Style(9) fixes, thanks to Ruslan. 2006-12-08 07:47:08 +00:00
kenv -mdoc sweep. 2005-11-17 12:15:23 +00:00
kill Fix markup. 2007-03-04 09:15:12 +00:00
ln Add '-F' option which allows to delete existing empty directories, when 2006-02-14 11:08:05 +00:00
ls Avoid a spurious warning for each whiteout found during "ls -lW". 2006-10-18 10:58:27 +00:00
mkdir More markup fixes. 2006-12-27 11:28:00 +00:00
mv Replace a fairly opaque sentence with a much clearer wording from NetBSD. 2007-05-12 22:18:27 +00:00
pax Remove unnecessary free argument casts. 2007-05-25 17:53:38 +00:00
ps Markup fixes. 2006-09-17 17:40:07 +00:00
pwd Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
rcp In the error handling path, don't call close(fd) if the error we're 2007-05-22 04:21:00 +00:00
realpath Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
rm Give a hint to the reader as to what the "whiteout" actually means. 2006-12-26 13:57:40 +00:00
rmail Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
rmdir Fix markup. 2006-12-27 12:14:56 +00:00
setfacl Implement the -h flag (set an ACL on a symbolic link). 2007-02-26 00:42:17 +00:00
sh Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
sleep Fix a comment. 2005-08-07 09:11:38 +00:00
stty Fix: printed output flags (onocr) and (onlret) same as oxtabs 2005-05-26 06:57:57 +00:00
sync /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
test Simplify some markup. 2006-12-14 10:42:46 +00:00
uuidgen Move uuidgen(1) from /usr/bin/ to /bin/. It will be used in rc.d/hostid 2007-04-09 19:16:48 +00:00
Makefile Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00