The text 24745f2fca67, as FreeBSD 10.2-RELEASE shipped it.
generate terminal pathname
ctermid_r(3) on FreeBSD now