Port t_kevent to FreeBSD

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Port t_mincore to FreeBSD

Mark :mincore_resid as atf_tc_expect_fail on FreeBSD because of new bug
discovered in running the tests (it succeeded from earlier on in the year to
September/October on FreeBSD, at least)

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273945 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Port h_atexit to FreeBSD

__cxa_atexit varies between FreeBSD and NetBSD, and thus we must use pointers
instead of static fields in the BSS. More extensive discussion is included in
the source code

In collaboration with: kib
Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Expect :snprintf_posarg_error to blow up with a SIGSEGV on !NetBSD OSes


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f