The text afbb2b35d515, as FreeBSD 7.4-RELEASE shipped it.
ttys(5) file routines
getttynam(3) on FreeBSD now