Improve namespacing in <sys/socket.h>:

 * MSG_NOSIGNAL is in POSIX.1-2008.
 * MSG_NOTIFICATION (SCTP) is not in POSIX.
 * PRU_FLUSH_* (SCTP) are not in POSIX.
 * bindat()/connectat() are not in POSIX.

Discussed with:	rrs (PRU_FLUSH_*)
Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.

MFC after:	1 week
Initialize sym_count to 0.

This fixes a compiler warning introduced in r248121.
Add some more stats to keep track of all the reasons that a vcpu is exiting.
Make `make check` an alias for `make regress`

This will help simplify the transition for EMC Isilon

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Be more succinct when ${TESTDIR} is undefined

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Don't barf if MACHINE{_ARCH}/TARGET{_ARCH} are undefined

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
s/LD_LIBRARY_PATH/ATF_LD_LIBRARY_PATH/

These variables are better separated from one another.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
s/TESTS_ENV/ATF_TESTS_ENV/

This variable is also better separated out

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Document bsd.test.mk and atf.test.mk

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Merge branch 'master' of github.com:/yaneurabeya/freebsd
When building universe ensure the required worlds are finished before
starting the kernels. Before this the kernels would be built as part of the
last architecture universe target. There can cause problems when this world
finishes before the other worlds as the host compiler may be picked up
rather than the target compiler.

The solution is to add a target to build the universe kernels that depends
on all the world targets finishing. As we may not be building a world only
depend on it when MAKE_JUST_KERNELS is undefined.
Add counter to keep track of the number of timer interrupts generated by
the local apic for each virtual cpu.
Fix xdev. Clang and libc were not building correctly on older worlds, for
example, on 9.1.
 * To fix clang add an _xb-bootstrap-tools target that mirrors the existing
   bootstrap-tools target in the full world.
 * For libc have the compiler use the newly installed includes, and, while
   here, tell the compiler about the xdev library path as some other
   libraries will link against the installed libraries.
Fix xdev-install when installing to a location other than /
Fix a typo in the CF device driver name that prevented instantiation.
Rename do_pipe() to kern_pipe2() and declare it properly.
Add a macro for checking for IPv4 link local addresses.

MFC after: 1 week
When running on armv6, set alignment checking to modulo-4 mode rather
than modulo-8, because clang emits ldrd and strd instructions for
addresses that are only 4-byte aligned.
When running on armv6, set alignment checking to modulo-4 mode rather
than modulo-8, because clang emits ldrd and strd instructions for
addresses that are only 4-byte aligned