Apply minor local adjustment to OpenBSM's parse.y due to differences in Yacc
between 10-CURRENT and 9-STABLE; this will allow the soon-to-be-connected
auditdistd to build on 9.x.

Pointer from:	bapt


git-svn-id: svn://svn.freebsd.org/base/stable/9@244397 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r244181 from head to stable/9:

  Fix the location of auditdistd configuration file.

  Reported by:    Johan Hendriks <joh.hendriks@gmail.com>

Merge remaining unmerged portions of r243752 from head to stable/9; parts
adding the new 'auditdistd' user were previously merged in r243947:

  Merge a number of changes required to hook up OpenBSM 1.2-alpha2's
  auditdistd (distributed audit daemon) to the build:

  - Manual cross references
  - Makefile for auditdistd
  - rc.d script, rc.conf entrie
  - New group and user for auditdistd; associated aliases, etc.

  The audit trail distribution daemon provides reliable,
  cryptographically protected (and sandboxed) delivery of audit tails
  from live clients to audit server hosts in order to both allow
  centralised analysis, and improve resilience in the event of client
  compromises: clients are not permitted to change trail contents
  after submission.

  Submitted by:   pjd
  Sponsored by:   The FreeBSD Foundation (auditdistd)

Obtained from:	TrustedBSD Project


git-svn-id: svn://svn.freebsd.org/base/stable/9@244398 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243901:
Fixes to ensure the integrity of the callwheel tailqs.

MFC r243912 (by attilio):
Rearrange comments, use cached callout flags when callout could have
been already destroyed.


git-svn-id: svn://svn.freebsd.org/base/stable/9@244416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243907:

Fix an old bug in devd, where it uses std::sort() to sort the various
lists it reads from its configuration files on the priority field.

Because some items in the lists have the same priority, and std::sort()
is not stable, the exact order in which the items are enumerated does
not have to correspond to the order they appear in the configuration
files.

Apparently this was never noticed with libstdc++, but with libc++ it
could cause the "uhid" entry from /etc/devd/usb.conf to be used instead
of the "ums" entry (which is earlier in the file).  This caused the
problem described in the PR: the USB mouse module was never loaded, and
the other actions (such as starting moused) were not executed.

To fix the problem, make devd use std:stable_sort() instead.

Reported by:	Jan Beich <jbeich@tormail.org>
PR:		bin/172958


git-svn-id: svn://svn.freebsd.org/base/stable/9@244430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243572:

  Pull in r168610 from upstream libc++:

    When using libc++ headers on FreeBSD, in combination with -std=c++98,
    -ansi or -std=c++03, the long long type is not supported.  So in this
    case, several functions and types, like lldiv_t, strtoll(), are not
    declared.

  This should make it possible to use the libc++ headers in c++98 mode.

  Note: libc++ is originally designed as a c++0x or higher library, so you
  should still take care when using it with c++98 or c++03.

  Noted by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>

MFC r243673 (by theraven):

  Merge new libc++ into head.


git-svn-id: svn://svn.freebsd.org/base/stable/9@244436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9