The text 370e7b637fc6, as Debian 12 (Bookworm) shipped it.
get ttys file entry
getttynam(3) on Linux now