login_tty ¶Documentation:
Portability problems fixed by Gnulib:
<utmp.h> on glibc, Cygwin, Android,
in <util.h> on macOS 14, NetBSD 5.0, OpenBSD 3.8,
in <libutil.h> on FreeBSD 14.0, Haiku,
and in <termios.h> on Solaris 11.4.
-lutil on some platforms:
glibc 2.3.6, FreeBSD 14.0, NetBSD 5.0, OpenBSD 3.8.
It is available without link options on other platforms:
macOS 14, Cygwin.
Portability problems not fixed by Gnulib: