- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from
  DragonflyBSD and install it as bsdpatch.  WITH_BSD_PATCH makes it
  default and installs GNU patch as gnupatch.

Submitted by:	pfg
Obtained from:	The DragonflyBSD Project


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


git-svn-id: svn://svn.freebsd.org/base/head@246075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add -l option to cat(1). This option causes cat(1) to use fcntl(2) to
set an exclusive advisory lock on stdout.  This will be used to guarantee
orderly writing to METALOG.

Sponsored by:	DARPA, AFRL
Obtained from:	NetBSD (mason)


git-svn-id: svn://svn.freebsd.org/base/head@246083 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump __FreeBSD_version for cat -l (soon to be a bootstrap tool).


git-svn-id: svn://svn.freebsd.org/base/head@246084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reduce duplication between i386/linux/linux.h and amd64/linux32/linux.h
by moving bits that are MI out into headers in compat/linux.

Reviewed by:	Chagin Dmitry  dmitry | gmail
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246085 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in debug printf.


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


git-svn-id: svn://svn.freebsd.org/base/head@246090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
 - Refresh code with latest OpenBSD revisions.
 - Remove $DragonFly$ tags as they are using git nowadays and VCS tags will
   not help merging.
 - Other changes to Copyright headers to make them consistent with other
   source code, we intend to fork from this point.

Reviewed by:	pfg


git-svn-id: svn://svn.freebsd.org/base/head@246091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix installworld when the host does not need to bootstrap nmtree.

Reported by:	lev, jmg


git-svn-id: svn://svn.freebsd.org/base/head@246092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide a statistic to track the number of drops in each of the port's
txq's buf_ring.  The aggregate for all the queues of a port is already
provided in ifnet->if_snd.ifq_drops.

MFC after:	3 days.


git-svn-id: svn://svn.freebsd.org/base/head@246093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused file.


git-svn-id: svn://svn.freebsd.org/base/head@246094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
route_output() always supplies info with RTAX_GATEWAY member that
points to a sockaddr of AF_LINK family. Assert this instead of
checking.


git-svn-id: svn://svn.freebsd.org/base/head@246095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix installworld when nmtree is not on the host by only adding it to
ITOOLS when we will be using the host copy.

Fix installkernel when -DNO_ROOT is set.


git-svn-id: svn://svn.freebsd.org/base/head@246096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Log the addition of login.conf.db, passwd, pwd.db, and spwd.db via cat -l.

Make cat a bootstrap tool to facilitate this.


git-svn-id: svn://svn.freebsd.org/base/head@246097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove extra %s from debug statement that ends up crashing tftpd if
debug is set very high (like -d15 in my case).

Obtained from:	Yahoo! Inc
MFC after:      2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add emulation support for instruction "88/r: mov r/m8, r8".

This instruction moves a byte from a register to a memory location.

Tested by: tycho nightingale at pluribusnetworks com


git-svn-id: svn://svn.freebsd.org/base/head@246108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for MSI-X interrupts in the virtio network device and make that
the default.

The current behavior of advertising a single MSI vector can be requested by
setting the environment variable "BHYVE_USE_MSI" to "true". The use of MSI
is not compliant with the virtio specification and will be eventually phased
out.

Submitted by:	Gopakumar T
Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@246109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing NULL pointer check.

Reported by:	Lars Engels
MFC after:	1 week


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

Submitted by:	jkim


git-svn-id: svn://svn.freebsd.org/base/head@246114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing header file inclusion guard.


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