Fix-up r247622 by also renaming pv_list iterator into the xen
pmap verbatim copy.

Sponsored by:	EMC / Isilon storage division
Reported by:	tinderbox


git-svn-id: svn://svn.freebsd.org/base/head@247678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libedit does not need to be linked with ncurses

libedit uses the terminfo headers but doesn't really need
to be linked with ncurses.

Discussed with:		christos@NetBSD
MFC after;		3 days


git-svn-id: svn://svn.freebsd.org/base/head@247683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the extra parenthesis from the cv_init() macro. They are not
necessary because we already use parenthesis in zfs_cv_init().

This fixes a long standing bug where there would be an extra ")" at the
end of the string. This extra parenthesis would show up in the WCHAN of
the process (top, stty status, etc.).


git-svn-id: svn://svn.freebsd.org/base/head@247684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFcalloutng:
Some whitespace fixes.


git-svn-id: svn://svn.freebsd.org/base/head@247698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug extracting files from dist scheme

Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/head@247705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add more obsolete files.


git-svn-id: svn://svn.freebsd.org/base/head@247709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement buffer size checking in ipfw(8) add cmd.

PR:		bin/65961
Submitted by:	Eugene Grosbein <eugen@grosbein.pp.ru>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@247712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libedit: Revert r247683 to fix buildworld.

I think r247683 is wrong because libedit.so actually uses symbols from
libcurses.so. Since it breaks the build, revert it now.


git-svn-id: svn://svn.freebsd.org/base/head@247713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove a couple of unused include.


git-svn-id: svn://svn.freebsd.org/base/head@247714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
callwheelmask and callwheelsize are always greater than zero.
Switch their type to u_int.


git-svn-id: svn://svn.freebsd.org/base/head@247715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MAINTAINERS: Document my maintainership of sh(1).


git-svn-id: svn://svn.freebsd.org/base/head@247716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix 'make depend'


git-svn-id: svn://svn.freebsd.org/base/head@247719 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: When executing a trap, keep exit status along with evalskip.

This ensures 'return' in a trap returns the correct status to the caller.

If evalskip is not set or if it is overridden by a previous evalskip, keep
the old behaviour of restoring the exit status from before the trap.


git-svn-id: svn://svn.freebsd.org/base/head@247720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typos in hint names.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add an option for finding sparse files.

Reviewed by:	iedowse
MFC after:	3 weeks


git-svn-id: svn://svn.freebsd.org/base/head@247730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improves and enhances using the "installPackages=" variable.
Adds "pkgExt=" variable to set if pkgs are .tbz or .txz or other.
Auto-detects if packages are PKGNG or old PKG format.
Auto-bootstrap of PKGNG for the new installed environment.
Fixes issues with installing packages from local media, such as DVD/USB.

Switch to using a space-delimiter for installPackages, since a number
of packages use a "," in their version string.

Fix pc-sysinstall to ignore install scripts, and not hang on
user interaction prompts when installing pkgs.

Add pkg2ng command as apart of pkgng bootstrap process.

Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/head@247734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use GNOP to force ZFS pools to 4k.

Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/head@247735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Plug memory leaks in file descriptors passing.


git-svn-id: svn://svn.freebsd.org/base/head@247736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use dedicated malloc type for filecaps-related data, so we can detect any
memory leaks easier.


git-svn-id: svn://svn.freebsd.org/base/head@247737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For some reason when I started to pass filedescent structures instead of
pointers to the file structure receiving descriptors stopped to work when also
at least few kilobytes of data is being send. In the kernel the
soreceive_generic() function doesn't see control mbuf as the first mbuf and
unp_externalize() is never called, first 6(?) kilobytes of data is missing as
well on receiving end.

This breaks for example tmux.

I don't know yet why going from 8 bytes to sizeof(struct filedescent) per
descriptor (or even to 16 bytes per descriptor) breaks things, but to
work-around it for now use 8 bytes per file descriptor at the cost of memory
allocation.

Reported by:	flo, Diane Bruce, Jan Beich <jbeich@tormail.org>
Simple testcase provided by:	mjg


git-svn-id: svn://svn.freebsd.org/base/head@247740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f