Make periodic(8) optional

Not for most folks, but it would help appliance builders that roll
their own stuff

Sponsored-by: EMC Isilon
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Make MK_PCSYSINSTALL inclusion match the rest of the file

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Apply conf/179111 fixes for bmake

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Merge remote-tracking branch 'upstream/master'

Conflicts:
	Makefile.inc1
	release/release.sh
	usr.sbin/Makefile
Fix merge conflicts

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Avoid controller reinitialization which could be triggered by
dhclient(8) or alias addresses are added.

Tested by:	dcx dcy <dcbsdx@hotmail.com>
Add the ARM processor-specific section types.

Reviewed by:	imp
Install authpf-noip.

MFC after:	3 days
Adding urtwn(4) firmware and related changes.

Reviewed by:	rpaulo
Approved by:	sbruno (mentor)
Clear m->object for the page taken from the delayed free list for
reuse as the pv chink page in reclaim_pv_chunk().  Having non-NULL
m->object is wrong for page not owned by an object and confuses both
vm_page_free_toq() and vm_page_remove() when the page is freed later.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
When panicing due to the gjournal overflow, print the geom metadata
journal id.

Requested by:	Andreas Longwitz <longwitz@incore.de>
MFC after:	1 week
Remove trailing whitespaces.
Fix build for gcc users by declaring variables for unions in structs which
don't declare a variable. The size before/after this change of the structs
doesn't change with gcc/clang.

Noticed by:	several
Suggested by:	Gary Jennejohn <gljennjohn@googlemail.com>
Report error for out-of-range numerical inputs.  Requested by brooks.
Extend debug logging of TCP timestamp related specification
violations.

Update related comments and style.
Add vfs_mounted and vfs_unmounted events so that components can be informed
about mount and unmount events. This is used by Juniper to implement a more
optimal implementation of NetBSD's veriexec.

This change differs from r253224 in the following way:
o   The vfs_mounted handler is called before mountcheckdirs() and with
    newdp locked. vp is unlocked.
o   The event handlers are declared in <sys/eventhandler.h> and not in
    <sys/mount.h>. The <sys/mount.h> header is used in user land code
    that pretends to be kernel code and as such creates a very convoluted
    environment. It's hard to untangle.

Submitted by:	stevek@juniper.net
Discussed with:	pjd@
Obtained from:	Juniper Networks, Inc.
Import new libcxxrt / libc++.  This brings some bug fixes, including a potential race condition for static initialisers.
Protect against broken hardware. In this particular case, protect against
H/W not de-asserting the interrupt at all. On x86, and because of the
following conditions, this results in a hard hang with interrupts disabled:
1.  The uart(4) driver uses a spin lock to protect against concurrent
    access to the H/W. Spin locks disable and restore interrupts.
2.  Restoring the interrupt on x86 always writes the flags register. Even
    if we're restoring the interrupt from disabled to disabled.
3.  The x86 CPU has a short window in which interrupts are enabled when the
    flags register is written.
4.  The uart(4) driver registers a fast interrupt by default.

To catch this case, we first try to clear any pending H/W interrupts and in
particular, before setting up the interrupt. This makes sure the interrupt
is masked on the PIC. The interrupt handler now has a limit set on the
number of iterations it'll go through to clear interrupt conditions. If the
limit is hit, the handler will return FILTER_SCHEDULE_THREAD. The attach
function will check for this return code and avoid setting up the interrupt
and foce polling in that case.

Obtained from:	Juniper Networks, Inc.
Fix -Wmissing-variable-declarations compiler warning.
Change i_gen in UFS to an unsigned type.

Missing type change from r252435.

This fixes a "Stale NFS file handle" error.

Reported by:	Claude Bisson
Tested by:	Claude Bisson
Pointed hat:	pfg