MFC pfctl fix (parse.y 1.641, pfctl_parser.c 1.300, pfctl_parser.h 1.104)
-----
Fixup incorrect expansion of the networking mask for dynamic interface
specifications under certain circumstances resulting in potentially
elevated access permissions for IPv6 traffic.  Reported by sthen@;
ok henning benno sthen
-----

Imported to Bitrig by patrick@. ok drahn@
sysmerge checksums have to be in the etc set.

Otherwise sysmerge fails to work.

ok drahn@
Consistently use COMPILER_RT_ABI for all public symbols.

Move prototypes into headers and fix a few inconsistencies.

Imported from compiler-rt upstream as in
bfbb8bbc8e4a4fce3538aa85b095543fee291df7.  Applied cleanly,
although the path to the files changed.

ae87ccaedad6737817cd296824b56615fb5f1556 is also needed
and included.

clear cache changed according to
76a80b1b277c477cd1a2fbee4f9b024bb1bc56c6 and
8554b6b336c08d813b59a4f2383e31b22f30e4dd.

ok drahn@
Create a usb stick image for amd64.
fix tmpfs crash upon coredump into removed dir

disallow file allocations on directories that have been removed
(tn_links == 0). failure to enforce such a check can lead to the
violation of the assumption that removed directories should not contain
directory entries -- thus triggering an assertion.

problem reported by Sebastien Marie and Peter J. Philipp on
bugs@openbsd.org -- thanks!

ok natano@
fix amd64 boot problems

the changes implemented in 1921a655 made the kernel able to boot images
of arbitrary size, without the user having to fine tune initial
bootstrap pmap parameters. this meant getting rid of fixed definitions
and calculating NKL2_KIMG_ENTRIES (the number of L2 page table entries
allocated for the kernel image) as well as TABLESIZE (the size of the
kernel's initial page tables) on the fly.

in order to avoid having to calculate TABLESIZE repeatedly, the code in
1921a655 calculated the value once and stored it on the stack, which at
this point is contained within the kernel image (tmpstk) and backed by
the initially established identity mapping.

we then proceed with the kernel's initialisation and, once in long mode,
dispose of the identity mapping. there is, however, one final reference
to TABLESIZE in the stack, which now lies in unmapped memory! note that
there are no TLB flushes inbetween, so albeit involving unmapped memory,
theoretically this access should work but, as demonstrated by QEMU when
configured with specific settings (i don't have the details) sometimes
it does not. in any case, this is a grey area -- and definitely
unintended behaviour! -- that can be easily circumvented by just
calculating TABLESIZE again, and this is what this diff does.

LGTM (like greek to me?) drahn@ patrick@
Revert d5e6de3581dd28212476b9839541fafc38bd6777 for install.sub

The LiveCD no longer exists so these changes do not make sense any longer.
add a test to check st_size upon lstat() on symlinks

posix says that lstat on a symlink should cause st_size to be set to the
length of the pathname contained in the symlink, not including any
terminating null byte. assert that this is the case.

ok marco@
Bump to 1.0-release and disable pool debug.

ok drahn@
Fix sort order. ok pedro@
set pr_npages for KERN_POOL_POOL in sysctl_dopool()

it is needed by tools such as vmstat, systat and netstat.

ok patrick@
Fix git branch in kernel bootup msg for branches with '/'.

Branches that use '/', like our stable branches, were not
shown correctly in the bootup message.  This is caused by
cut cutting at '/' and only using the 3rd field.

To fix this, let cut show every field after the 2nd.

ok natano@
Fix description for -iwithprefixbefore option.
Remove the PAX_CTG type. It is checked for, but never set.

ok pedro@
Let's use MIN() from <sys/param.h>; no binary change.

ok pedro@
Remove shallow wrappers for major/minor/makedev; no binary change.

ok pedro@