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