The text b97d47b712ce, as FreeBSD 9.3-RELEASE shipped it.
generate terminal pathname
ctermid_r(3) on FreeBSD now