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