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