usb4bsd - Change M_NOWAIT to M_WAITOK

* M_NOWAIT really needs to be M_WAITOK in these places.  It is unclear
  why FreeBSD invites random device failures by using M_NOWAIT all over
  the place.
libfetch: what happened to ftp-cached commit?

I thought I committed this fix last night.  I don't know how it
disappeared.  It's the fix documented in FreeBSD PR Kern/153748
where a ftp-cached connection will close the connection too early
when sending a request.
libfetch: Change FTP default to passive mode

1. The caller can select active mode using "P" flag.
2. If the "p" passive flag is also present, it takes precedence over "P"
   so the connection will be attempted in passive mode.

Taken-from: FreeBSD SVN 225810 (27 SEP 2011)
Taken-from: FreeBSD SVN 225812 (27 SEP 2011)
libfetch: Use select(2) as a consequence of switching to non-blocking

Since the socket is non-blocking, it is necessary to use select(2) even
when there is no timeout, because read(2) will return immediately if there
is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on
slow connections.

Taken-from: FreeBSD SVN 234837 (30 APR 2012)
libfetch: Implement HTTP digest authentication, HTTP 305, and HTTP 308

Implement HTTP status 305: Use proxy
Implement HTTP status 308: Permanent redirect
Implement HTTP Digest Authentication

Taken-from:
FreeBSD SVN 202613 (19 JAN 2010)
FreeBSD SVN 202623 (19 JAN 2010)
FreeBSD SVN 203028 (26 JAN 2010)
FreeBSD SVN 209632 (01 JUL 2010)
FreeBSD SVN 210563 (28 JUL 2010)
FreeBSD SVN 221820 (12 MAY 2011)
FreeBSD SVN 221821 (12 MAY 2011)
FreeBSD SVN 221822 (12 MAY 2011)
FreeBSD SVN 221823 (12 MAY 2011)
FreeBSD SVN 234838 (30 APR 2012)
FreeBSD SVN 240496 (14 SEP 2012)
FreeBSD SVN 241840 (21 OCT 2012)
FreeBSD SVN 241841 (21 OCT 2012)
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
kernel - Force word-writes in syscons code (Intel hw character mode emulation)

* Observed on the Intel D2500HN.  The system console in character map mode
  fails utterly when a normal bcopy() is used to move stuff around.  Employ
  a specialized bcopy that uses 16-bit writes to work around the problem.

* Just do this generally, we don't care about syscons performance.

* This is possibly due to a hardware/text-mode emulation in the Intel D2500HN
  and it will probably show up in the future as well.  This could be related
  to complaints about UEFI BIOSs (which the D2500HN mobo from Intel supports)
  not handling text mode, but it handles it just fine if we only use 16-bit
  writes.
Merge branch 'master' into gsocdrm_merger
Remove duplicate word.

Contributed-by: "eadler" <lists@eitanadler.com>
kernel: Fix some wrong cam_simq_release() calls.

Our (refcounted) simq can be released right after allocating the sim.
These drivers were not doing it correctly.
kernel: Simplify simq releasing in some RAID drivers.
Bring in recent mktemp(1) changes from FreeBSD

Support the Sun/GNU/FreeBSD extension of mktemp
returning a file1 in /tmp when called without a path.

This also minimizes the difference between the DragonflyBSD
and FreeBSD version of the man page.
Revert "bge: Always configure MII mode register"

This reverts commit dda43ff2bc5975a3cbd91838e7a46332039962f4.

Forcefully configure seems to break at least BCM5761 NIC auto-negotiation
bge: Switch from device_polling to ifpoll

Also fix a bug in the polling code when status tag is used:
status tag always needs to be written even if interrupt is not enabled.
libutil: Implement group file utilities

Taken from FreeBSD's libutil
libutil: Implement hexdump(3)

Similar to hexdump(9) but available to userland.

Taken-from:
FreeBSD SVN 180161 (01 JUL 2008)
FreeBSD SVN 185729 (06 DEC 2008)
elf_common.h: Add EM_AMD64 as alias to EM_X86_64
ifpoll: Also check sysctl_tree in compat code setup
bce: Switch from device_polling to ifpoll
re: Swicth from device_polling to ifpoll