Previous: ttyent.h, Up: Glibc Header File Substitutes [Contents][Index]
Defines functions for login and logout (to a tty session) and for examining the history of logins and logouts.
Documentation:
Gnulib module: utmp
Portability problems fixed by Gnulib:
<sys/types.h>
is a prerequisite of <utmp.h>
on some platforms:
FreeBSD 8.0, OpenBSD 7.2.
Portability problems not fixed by Gnulib:
struct utmp
field ut_user
,
older platforms have the field ut_name
.
struct utmp
fields ut_id
, ut_pid
, ut_type
do not exist on some platforms:
macOS, old FreeBSD, NetBSD, OpenBSD, Minix.
struct utmp
field ut_host
does not exist on some platforms:
Solaris.
struct utmp
field ut_exit
does not exist on some platforms:
macOS, old FreeBSD, NetBSD, OpenBSD, Minix, Cygwin.
struct utmp
field ut_session
does not exist on some platforms:
macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, Solaris, Cygwin.
struct utmp
field ut_addr
or ut_addr_v6
does not exist
on some platforms:
macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, Solaris.
time_t
was historically 32 bits.
year2038
or
year2038-recommended
modules are used and the program is
configured without the --disable-year2038 option.
The readutmp
module works around this problem:
glibc 2.38 on 32-bit platforms like x86 and ARM where time_t
was historically 32 bits.
See Avoiding the year 2038 problem.
Previous: ttyent.h, Up: Glibc Header File Substitutes [Contents][Index]