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