Reduce DWC OTG polling rate by using the SOF interrupt.


git-svn-id: svn://svn.freebsd.org/base/head@240381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Restart the USB transfer if the error is not USB_ERR_CANCELLED.


git-svn-id: svn://svn.freebsd.org/base/head@240382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix AHCI 1.2 version checks. This should be mostly cosmetic.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@240383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Describe in detail required conditions for receiving the SCM_CREDS
control message and suggest to use LOCAL_CREDS setsockopt() for
reliability.


git-svn-id: svn://svn.freebsd.org/base/head@240385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document conditions for IP_SENDSRCADDR socket option.

Obtained from:	r167342 commit message


git-svn-id: svn://svn.freebsd.org/base/head@240386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove redundant check


git-svn-id: svn://svn.freebsd.org/base/head@240387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing braces

Obtained from:	DragonFly


git-svn-id: svn://svn.freebsd.org/base/head@240388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for ipv6 addresses as destination

PR:		bin/150530
Submitted by:	andy white <andywhite@gmail.com>
Tested by:	Olivier Cochard-Labbe <olivier@cochard.me>
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@240389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR:		bin/171487
Submitted by:	matthew
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@240391 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In NAT-T transport mode, allow a client to open a new connection just after
closing another.
It worked only in tunnel mode before.

Submitted by:	Andreas Longwitz <longwitz@incore.de>
MFC after: 1M


git-svn-id: svn://svn.freebsd.org/base/head@240392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Fix detaching under some circumstances.

  When truss is detaching from very active process it is possible to
  hang on waitpid(2) in restore_proc() forever, because
  ptrace(PT_SYSCALL) must be called before detaching, to allow the
  debugging process to continue execution.  Also when truss called with
  '-c' argument, it does not print anything after detach, because it
  immediately exits from restore_proc().

  To fix these two problems make detaching deferred, but then it is
  impossible to detach from a process which does not do any system call.
  To fix this issue use sigaction(2) instead of signal(3) to disable
  SA_RESTART flag for waitpid(2) that makes it non-restartable.  Remove
  global variable child_pid, because now detaching is handled in context
  where child's pid is known.

Reported by:	mjg
Tested by:	mjg, swills
Approved by:	kib (mentor)
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@240393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace a bare use of 'objcopy' with ${OBJCOPY} for easier cross compilation
in environments where 'objcopy' is spelled differently.

Submitted by:	John Van Horne <jvanhorne@juniper.net>


git-svn-id: svn://svn.freebsd.org/base/head@240400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Not all Pmake derived makes quietly tolerate assignment from shell commands
with no output.  Add "echo" at the end these shell commands whose output is
assigned to a variable's value to ensure there is some output.

Submitted by:	John Van Horne <jvanhorne@juniper.net>


git-svn-id: svn://svn.freebsd.org/base/head@240401 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove duplication and centralize testing of various config(8)ed features.


git-svn-id: svn://svn.freebsd.org/base/head@240402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Not all Pmake derivatives silently handle empty shell output, so ensure there
is something for make(1) to consume.  Bmake gives output such as:
   "warning: Couldn't read shell's output for "/bin/sh -c true"
Note we parted from traditional Pmake behavior in r18864 / r18255.


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


git-svn-id: svn://svn.freebsd.org/base/head@240404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simply printf-like strings and outdent strings so that it is easy to see
if they fit on a standard terminal.


git-svn-id: svn://svn.freebsd.org/base/head@240405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove needless (int) casts of write(2)'s 3rd argument.
Also change blwrite() 'size' parameter to a ssize_t to better match
write(2).


git-svn-id: svn://svn.freebsd.org/base/head@240406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add documentation for IPv6 support

PR:		docs/171580
Submitted by:	bdrewery
Reviewed by:	wblock
Approved by:	gjb
MFC after:	1 month
X-MFC-With:	r240389


git-svn-id: svn://svn.freebsd.org/base/head@240409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid mapping ENOENT to ENOTDIR for non-existent path components.

The ENOTDIR mapping was introduced in r235266 for kern/128933 based on
an interpretation of the somewhat ambiguous language in the POSIX realpath
specification.  The interpretation is inconsistent with Solaris and Linux,
a regression from 9.0, and does not appear to be permitted by the
description of ENOTDIR:

     20 ENOTDIR Not a directory.  A component of the specified pathname
             existed, but it was not a directory, when a directory was
             expected.

PR:		standards/171577
MFC after:	3 days


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