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