De-k&r-ify function definitions in kern/kern_resource.c

No functional changes.
Tidy up functions related to uidinfo management.

- reference found uidinfo in uilookup
- reduce nesting by handling shorter cases first
Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by:	jmg [1]
Reviewed by:	jmg
MFC after:	2 weeks
Output a summary of optional SVM features in dmesg similar to CPU features.
If bootverbose is enabled, a detailed list is provided; otherwise, a
single-line summary is displayed.

Differential Revision:	https://reviews.freebsd.org/D1008
Reviewed by:	jhb, neel
MFC after:	1 week
Remove bhyve SVM feature printf's now that they are available in the
general CPU feature detection code.

Reviewed by:	neel
Some cxgbe/iw_cxgbe fixes:
- Free rt in c4iw_connect only if it is allocated.
- Call soclose instead of so_shutdown if there is an abort from the peer.
- Close socket and return failure if TOE is not enabled.

Submitted by:	Hariprasad at Chelsio dot com
Sponsored by:	Chelsio Communications
krping: In verbose mode print only first 128 bytes of krping data.

Submitted by:	Hariprasad at Chelsio dot com.
Sponsored by:	Chelsio Communications
fix typo, properly install a link to nv for nvlist_freev...
iwcm_event status needs to be populated for close_complete_upcall

Submitted by:	Hariprasad at Chelsio dot com
Sponsored by:	Chelsio Communications
Use pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.
FreeBSD:11:amd64 instead of freebsd:11:x86:64) when bootstrapping pkg.
Thanks to portmgr for providing symlinks so both styles work.

Reviewed by:	bapt
MFC after:	3 weeks
Rename XFLAGS to XCFLAGS and XXFLAGS to XCXXFLAGS

This is less confusing names and actually more reflexting what they are intended
to.

Discussed with:	brooks
only install .pc files when we are not installing 32bit compat libs...

This fixes the problem of installing the .pc files multiple times...
Add CAPABILITIES and CAPABILITY_MODE to powerpc GENERIC64, missed with the addition to
GENERIC

MFC after:	3 weeks
Fix prototypes.
Drop __DECONST as well as few fixes of style(9).

Phabric:	D1012
Suggested by:	mjg, jhb
Reviewed by:	mjg, jhb
Sponsored by:	QNAP Systems Inc.
Allow loading of dtraceall without nfscl if what you really wnat is nfsclient

Obtained from:	Panzura tree
MFC after:	1 week
Change loginclass mutex to an rwlock.

While here reduce nesting in loginclass_free.

Submitted by:	Tiwei Bie <btw mail.ustc.edu.cn>
X-Additional:	JuniorJobs project
MFC after:	2 weeks
Fix cp(1) bugs.
Merge branch 'master' into markj-develop
Merge branch '20141027-cp-symlink-handling2' into markj-develop