MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR:        bin/151023
Submitted by:    tjmao at tjmao.net


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

Pull in r214736 from upstream libc++ trunk (by Marshall Clow):

  Fix PR#20520 - predicate called too many times in list::remove_if.
  Add tests for list, forward_list, and the std::remove_if algorithm

This fixes an issue where std::list<>::remove_if() and remove() could
erroneously visit elements twice.

Reported by:	Dominic Fandrey <kamikaze@bsdforen.de>
PR:		192303


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

  Fix relative numerical addressing (addr,+N).

  As a bonus the patch untangles a bit the logic and makes the code
  easier to grasp.

  PR:           192108


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r268316:
Fix OFED startup order: All SYSINIT()'s and modules should be loaded
prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx"
scripts. Else there can be a race configuring the interfaces via
"/etc/rc.conf".

Sponsored by:	Mellanox Technologies


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269863 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258162 and r257594:
Add some more IDs for Intel ATA, AHCI and USB controllers.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r264417: realpath(): Properly fail "." or ".." components after
non-directories.

If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..",
it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as
they should.

Also, put the check for non-directories after lstatting the previous
component instead of when the empty component (consecutive or trailing
slashes) is detected, saving an lstat() call and some lines of code.

PR:		kern/82980


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r269566:
Fix for deadlock in USB device side mode.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r269565:
Rename driver name a bit to avoid unit number confusion in dmesg.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r268637 from head:

  fortune(8): Search fortune files installed by ports/packages as well as
  those supplied by the base system.

PR:		191800
Submitted by:	Andy Kosela


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r268725 from head:

  Since r202933, kthread_suspend_check() takes no arguments.  Update the
  example to match.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r268728 from head:

  When we fail to extract the pkg binaries (for example, / is read-only),
  give a more helpful error message.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r267859 (by bapt), r268998 from head:

o Mark send-pr info page as an obsolete file

o /usr/bin/sendbug and the sendbug(1) man page were part of send-pr and
  are no longer installed since r267486 (r267734 in stable/10).  Add them
  to ObsoleteFiles.inc1, which should have been done in r267486.

PR:		192010 (partial)
Submitted by:	Vick Khera (partial)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257877:
Don't try to use the 32-bit drti.o unless the data model is explicitly set
to ILP32. Otherwise dtrace -G will attempt to use it on amd64 if it can't
determine which data model to use, which happens when -64 is omitted and
no object files are provided, e.g. with

# dtrace -G -n BEGIN

This would result in a linker error, but now works properly.

Also remove an unnecessary #ifdef.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@269987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r269888:
  Fix a typo in a comment: s/interprete/interpret/

Sponsored by:	The FreeBSD Foundation


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

Supplement r259111 by also using correct casts in gcc's emmintrin.h for
the first argument of the following builtin function:

* __builtin_ia32_psrlqi128() takes __v2di instead of __v4si

This should fix the following errors when building the graphics/webp
port with base gcc:

lossless_sse2.c:403: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'
lossless_sse2.c:404: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'

Reported by:	Jos Chrispijn <ports@webrz.net>


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

Stop telling people to directly report llvm or clang bugs upstream,
point them to the FreeBSD bug tracker instead, since we use our own
patches.


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