Don't try to suppress the inclusion of the build date in named's version
string by undefining __DATE__, since (unlike gcc) clang doesn't allow us
to do that.  Instead, define NO_VERSION_DATE, which was helpfully added
to the named source code for exactly this purpose.


git-svn-id: svn://svn.freebsd.org/base/head@246627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
find: Run when cwd cannot be opened, except with -execdir or -delete.

fts(3) can run (albeit more slowly and imposing the {PATH_MAX} limit) when
the current directory cannot be opened. Therefore, do not make a failure to
open the current directory (for returning to it later in -exec) fatal.

If -execdir or -delete are used, the expectation is that fts(3) will use
chdir to avoid race conditions (except for -execdir with -L). Do not break
this expectation any more than it already is by still failing if the current
directory cannot be opened.


git-svn-id: svn://svn.freebsd.org/base/head@246628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve code style. No functional change.

MFC after: 3 days


git-svn-id: svn://svn.freebsd.org/base/head@246629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add bootcamp support to the loader.

Tested by:	dchagin
MFC after:	1 week


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

Import vendor bugfixes

Illumos ZFS issues:
  3422 zpool create/syseventd race yield non-importable pool
  3425 first write to a new zvol can fail with EFBIG

References:
  https://www.illumos.org/issues/3422
  https://www.illumos.org/issues/3425

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246631 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.

This allows bar sizes greater than or equal to 4GB to be displayed correctly.


git-svn-id: svn://svn.freebsd.org/base/head@246632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Use prototype declarations for function definitions

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make sure that received packets for removed addresses are handled
consistently. While there, make variable names consistent.

MFC after: 3 days


git-svn-id: svn://svn.freebsd.org/base/head@246635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the ia64-specific code fragment, which effect is more cleanly
done by the call to trans_prot() function a line before.

Discussed with:	Oliver Pinter <oliver.pntr@gmail.com>
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
fts: Use O_DIRECTORY when opening name that might be changed by attacker.

There are uncommon cases where fts_safe_changedir() may be called with a
non-NULL name that is not "..". Do not block or worse if an attacker put (a
(symlink to) a fifo or device where a directory used to be.

MFC after:	1 week


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

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/head@246643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Capability rights for process management via process descriptors do exist
already, so uncomment them.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/head@246644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide verbose help for fdt commands on platforms that use it.


git-svn-id: svn://svn.freebsd.org/base/head@246647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Extend the timestamp to be a timeval, rather than ticks.

This makes it easier to see TX and RX buffer latencies.


git-svn-id: svn://svn.freebsd.org/base/head@246648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Teach athalq about the recent if_ath_alq timestamp format change.


git-svn-id: svn://svn.freebsd.org/base/head@246649 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Go back to direct-dispatch of the software queue and frame TX paths
when they're being called from the TX completion handler.

Going (back) through the taskqueue is just adding extra locking and
latency to packet operations.  This improves performance a little bit
on most NICs.

It still hasn't restored the original performance of the AR5416 NIC
but the AR9160, AR9280 and later NICs behave very well with this.

Tested:

* AR5416 STA (still tops out at ~ 70mbit TCP, rather than 150mbit TCP..)
* AR9160 hostap (good for both TX and RX)
* AR9280 hostap (good for both TX and RX)


git-svn-id: svn://svn.freebsd.org/base/head@246650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r246390:
Import minor type change in refcount.h header from vendor (illumos).

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Put this back into the ath taskqueue rather than the ath TX taskqueue.

This now should mean all the entry points into the software TX
scheduler are back in the same taskqueue.


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


git-svn-id: svn://svn.freebsd.org/base/head@246655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add -lheimntlm to LDADD directly.

With the current binutils, symbols from libheimtlm.so are loaded because
it is referenced by DT_NEEDED.  This feature is not implemented in
mclinker (https://code.google.com/p/mclinker/issues/detail?id=104).
I encountered the same issue when linking with a recent devel/binutils
invoked via clang.  This was the only use of DT_NEEDED in the tree so
removing it simplifies toolchain requirements.

Submitted by:	Pete Chou <petechou@gmail.com> (mclinker issue)


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