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