The
loginx(),
logoutx(), and
logwtmpx() operate on the
utmpx(5) database of currently logged in users, and the
wtmpx(5) database of logins and logouts.
The
loginx() function updates the
/var/run/utmpx and
/var/log/wtmpx databases with the information from
ut.
logoutx() updates the entry corresponding to
line with the type and status from
type and
status.
logwtmpx() writes an entry filled with data from
line,
name,
host,
status, and
type to the
wtmpx(5) database.