Remove unused variable.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add strchrnul(), a GNU function similar to strchr(), except that it returns
a pointer to the end of the string, rather than NULL, if the character was
not found.

Approved by:	theraven


git-svn-id: svn://svn.freebsd.org/base/head@246766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Restore De Bruijn algorithm for sparc64 where the compiler rely on a
library function for __builtin_c?z.

Tested by:	Michael Moll <kvedulv kvedulv de>


git-svn-id: svn://svn.freebsd.org/base/head@246768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change "the  the" to "the".  It is a continuation of r226436 and missed in
r237658.

Approved by:	benl (maintainer, implicit)


git-svn-id: svn://svn.freebsd.org/base/head@246771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge OpenSSL 1.0.1e.

Approved by:	secteam (simon), benl (silence)


git-svn-id: svn://svn.freebsd.org/base/head@246772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change vfs.zfs.write_to_degraded from CTLFLAG_RW to CTLFLAG_RWTUN

Suggested by:	pjd


git-svn-id: svn://svn.freebsd.org/base/head@246773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Requests for invalid CPUID leaves should map to the highest known leaf instead.

Reviewed by:	grehan
Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@246774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use static for all functions that do not need to be exported.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Abstract out setting of nfsdcnt and consistently use MAXNFSDCNT when the
proposed value is too high and DEFNFSDCNT when proposed value is too low.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simplify r243637 and make sure that nfsdargs.{min,max}threads are always set
to meaningful value:

 - When nfsdcnt is set, it dictates all values;
 - Otherwise, nfsdargs.minthreads is set to user specified value, or the
   automatically detected value if there is no one specified;
   nfsdargs.maxthreads is set to the user specified value, or the value
   of nfsdargs.minthreads if there is no one specified; when it is smaller
   than nfsdargs.minthreads, the latter's value is always used.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246781 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
rework old-style functions prototypes
reduce WARNS=6 output


git-svn-id: svn://svn.freebsd.org/base/head@246783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Fix libmd dependency.  It is needed in the bootstrap library list because
  usr.bin/xinstall depends on it.
- Remove libutil from usr.bin/xinstall/Makefile.  No symbol was actually used.

Reviewed by:	brooks


git-svn-id: svn://svn.freebsd.org/base/head@246784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add USB API to read power draw on USB devices.
Update usbconfig to print power draw on USB devices.

MFC after:	2 weeks
Submitted by:	Matt Burke @ icritical.com


git-svn-id: svn://svn.freebsd.org/base/head@246789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In case of failure of the pkg boostrap advice the user to either change the
PACKAGESITE they use or install from ports directly indicating where the port
is localted in the port collection

Submitted by:	kientzle


git-svn-id: svn://svn.freebsd.org/base/head@246790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow fdescfs to be mounted from inside a jail

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
remove old-style function definition
reduce WARNS=6 output


git-svn-id: svn://svn.freebsd.org/base/head@246792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert r246791 as it needs a security review first

Reported by:	gavin, rwatson


git-svn-id: svn://svn.freebsd.org/base/head@246793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Resolve issue that caused WITNESS to report LORs.

PR:	kern/171838
Submitted by:	Venkat Duvvuru <venkatduvvuru.ml@gmail.com>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add option "--unassign-pptdev=<bus/slot/func>" to allow 'bhyvectl' to detach
passthru devices from the guest.

Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@246800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Assert that user address is never qremoved.

No objections from:	alc
MFC after:	1 week


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