Use _exit instead of exit so the file descriptors aren't flushed twice in the
child processes

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Only expect timeouts on powerpc with NetBSD

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD

PR: 191906
In collaboration with: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add pthread_np.h #include and initialize the pthread attribute on FreeBSD

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
#ifdef out a printf on !NetBSD that causes the testcase to fail when comparing
the output from the helper program

Submitted by: pho


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.c

Submitted by: pho
In collaboration with: kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing sys/time.h #include for timespecsub macro in lib/libnetbsd/sys/time.h


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