MFC: r267967, r267968

- SC_NO_SYSMOUSE isn't currently supported by vt(4), so nuke it from vt.4.
- vt_vga(4) is a driver rather than a function so reference it accordingly.
- Uncomment HISTORY section given that vt(4) will first appear in 9.3.

Reviewed by:	emaste (modulo last part)
Sponsored by:	Bally Wulff Games & Entertainment GmbH


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r267544:

Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision:		13222:02526851ba75

Approved:	core (jhb)
Approved:	FreeBSD Foundation (emaste)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r267601:

stdtime: style(9) fixes.

Obtained from:	illumos


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267378:

Fix path for zlib examples, this have no runtime effect and was
overlooked when I was doing zlib update.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267800:
Exclude IPv4 address from doing longest match.
It prevented DNS based load balancing.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267801: Make nd6_gctimer tunable.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267336:

PF_BLUETOOTH protocols: skip initialization of non-virtualized globals
for non-default VNET instances.

This fixes panic on a vnet initialization when ng_btsocket is loaded.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267981:

Pull in r211627 from upstream llvm trunk (by Bill Schmidt):

  [PPC64] Fix PR20071 (fctiduz generated for targets lacking that
  instruction)

  PR20071 identifies a problem in PowerPC's fast-isel implementation
  for floating-point conversion to integer.  The fctiduz instruction
  was added in Power ISA 2.06 (i.e., Power7 and later).  However, this
  instruction is being generated regardless of which 64-bit PowerPC
  target is selected.

  The intent is for fast-isel to punt to DAG selection when this
  instruction is not available.  This patch implements that change.
  For testing purposes, the existing fast-isel-conversion.ll test adds
  a RUN line for -mcpu=970 and tests for the expected code generation.
  Additionally, the existing test fast-isel-conversion-p5.ll was found
  to be incorrectly expecting the unavailable instruction to be
  generated.  I've removed these test variants since we have adequate
  coverage in fast-isel-conversion.ll.

This is needed to compile clang with debug+asserts on older powerpc64
and ppc970 targets.

Requested by:	jhibbits

MFC r267982:

Add the llvm patch for r267981.

MFC r268003:

Fix breakage after r267981.

Pointy hat to:	dim


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267493:

Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR:		bin/190665
Submitted by:	Oleg Ginzburg <olevole olevole ru> (with changes)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267372-267374: fix various misimplementation of instructions.

Submitted by:	Wolf Ramovsky <wolf.ramovsky gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 266322,266323:
- Use 'RESOURCE' instead of the more generic 'TYPE' for the resource name
  column header when displaying resource usage.  This more closely matches
  other procstat displays.
- Add descriptions of the display formats for -e, -l, -r, and -x.  Fix a few
  typos in indent settings while here.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MVC	r268014:
Reduce some warnings in the Solaris unicode support.

Clean some warnings from parenthesis and minor style issues.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267871: Introduce $RA_SERVER to set default whois server.

Requested by:	nork
Reviewed by:	nork


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267680:
Fix a code typo that prevented mkdir from firing (unnoticed
usually because another part of the code succeeded in making
the same directory).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r268078 and r268080:
Fix for memory use after free() and mtx_destroy().


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268208 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r266814

Initialize r_flags the same way in all cases using a sanitized copy of
flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE
bits are invalid in this context, and we want to defer setting RF_ACTIVE
in r_flags until later.  This should make rman_get_flags() return
the correct answer in all cases.

Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED
or RF_FIRSTSHARE flags.

Do a strict equality check on the share type bits of flags.  In
particular, do an equality check on RF_PREFETCHABLE.  The previous
code would allow one type of mismatch of RF_PREFETCHABLE but disallow
the other type of mismatch.  Also, ignore the the RF_ALIGNMENT_MASK
bits since alignment validity should be handled by the amask check.
This field contains an integer value, but previous code did a strange
bitwise comparison on it.

Leave the original value of flags unmolested as a minor debug aid.

Change the start+amask overflow check to a KASSERT() since it is just
meant to catch a highly unlikely programming error in the caller.

Reviewed by:	jhb


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267912, r267915:
- Exclude loopback address rather than loopback interface.
- style(9)

Spotted by:	melifaro


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r266270:
Remove some unused variables.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r266490, r266738, r267955, and r268209:
- Improve performance by fixing incorrect Rx/Tx handling
- Rename definition of AXGE_* to reflect reality
- Add new USB IDs
- Add proper rangechecks in "axge_rx_frame()" function and
fix receive loop header parsing.
- Disable hardware checksumming until it is properly tested.

PR:	191432


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267909: Document EINVAL.

PR:		191382


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@268225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f