Thanks to setlogin()/getlogin() some operating systems are frustratingly close to the point where all of the relevant information can be read straight out of the kernel's process table, without need for coöperatively maintaining a data file.
On FreeBSD, for example, one can do everything except filter out the terminals where no-one is logged on yet and print a "FROM" column.
You'll find, in archives from hacking sites of the era, a whole variety of "utmp editors".