The text 30df4ed52d5c, as FreeBSD 8.4-RELEASE shipped it.
generate terminal pathname
ctermid_r(3) on FreeBSD now