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