Merge ATF 0.16 from vendor/atf/dist.

Provenance: http://code.google.com/p/kyua
Discussed with: gibbs, gnn, keramida, mdf, mlaier,
Discussed with: Garrett Cooper
Update to a pruned 0.16.
Fix two clang warnings in the recent atf import.  These have also been
sent upstream.

Tested by:	Garrett Cooper <yanegomi@gmail.com>
Remove redundant text describing the cleanup routine.
Upstreamed:
    http://code.google.com/p/kyua/issues/detail?id=43

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Fix typos in description for exp{err,out}_mismatch_head.
Upstreamed:
    http://code.google.com/p/kyua/issues/detail?id=44

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Add support for DragonFly and FreeBSD.
Upstreamed:
    http://code.google.com/p/kyua/issues/detail?id=45

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
The *_STR* macros use strcmp() to check their arguments.  Include string.h
to have this definition available.
Upstream commit: 1dc1884f778f88811583e6a54610a6d7e421ca63

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Add ATF update instructions and file exclude list.

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Commit local changes for ATF to pass integration tests

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Revert "Commit local changes for ATF to pass integration tests"

This reverts commit 994ffb4974f755d541e835afdcf441913e8681f1.
Revert "Revert "Commit local changes for ATF to pass integration tests""

This reverts commit b99c310050a0cb685115057931d409b7fb861ca9.
Add memory requirement checking for DragonFly and FreeBSD

This required fixing how sysctls were grabbed, in particular
the correct pattern is always to do:

1. query size
2. malloc
3. query value

It was returning bogus sizes before on FreeBSD before, which
is no bueno.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Fix a compiler warning that results in a test failure

Reported-by: marcel
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Upgrade ATF to 0.17

Reapply r251108

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>

Conflicts:
	contrib/atf/bconfig.h
	lib/atf/libatf-c++/Makefile
Add headers created by running configure.
Upgrade ATF to 0.17

Reapply r251108

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Fix file extension pedanticisms that clang++ hates

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Add ATF to the build. This is may be a bit rought around the egdes,
but committing it helps to get everyone on the same page and makes
sure we make progress.

Tinderbox breakages that are the result of this commit are entirely
the committer's fault -- in other words: buildworld testing on amd64
only.

Credits follow:

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Sponsored by:	Isilon Systems
Based on work by:	keramida@
Thanks to:	gnn@, mdf@, mlaier@, sjg@
Special thanks to:	keramida@

Conflicts:
	Makefile.inc1
	etc/Makefile
	lib/atf/libatf-c++/Makefile
	share/examples/Makefile
	share/man/man4/Makefile
Port over all of the examples from prev. git repo

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Install the correct files

The sample files won't pass the integration tests

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>