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