Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.Prune svn:mergeinfo from the new branch, as nothing has been mergedhere.Additional commits post-branch will follow.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
NO_MAN= has been deprecated in favor of MAN= for some time, go aheadand finish the job. ncurses is now the only Makefile in the tree thatuses it since it wasn't a simple mechanical change, and will beaddressed in a future commit.
Significantly reduce the memory leak as noted in BUGS section forsetenv(3) by tracking the size of the memory allocated instead of usingstrlen() 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 fromAndrey Chernov's previous commit. A few I re-wrote to use setenv()instead of putenv().New regression module for tools/regression/environ to test thesefunctions. It also can be used to test the performance.Bump __FreeBSD_version to 700050 due to API change.PR: kern/99826Approved by: wesApproved by: re (kensmith)