FreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expected
failure

PR: 191936

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't pass RF_ALLOCATED to bus_alloc_resource().


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272904 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
FreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 in
{get,set}{domain,host}name. Adjust the tests to not exceed that
value when testing out the code

Add a positive and negative test for MAXHOSTNAMELEN-1 and
MAXHOSTNAMELEN, respectively

PR: 181127
In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division


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