NAME
llooggiinn, llooggoouutt, llooggwwttmmpp - login utility functions
SYNOPSIS
##iinncclluuddee <
void llooggiinn(struct utmp *ut); int llooggoouutt(const char *line); void llooggwwttmmpp(const char *line, const char *name, const char *host);> DESCRIPTION
The llooggiinn(), llooggoouutt(), and llooggwwttmmpp() functions operate on the database of current users in /var/run/utmp and on the logfile /var/log/wtmp of logins and logouts. The llooggiinn() function updates the /var/run/utmp and /var/log/wtmp files with user information contained in ut. The llooggoouutt() function removes the entry from /var/run/utmp corresponding to the device line. The llooggwwttmmpp() function adds an entry to /var/log/wtmp. Since llooggiinn() will add the appropriate entry for /var/log/wtmp during a login, llooggwwttmmpp() is usually used for logouts.RETURN VALUES
llooggoouutt() returns non-zero if it was able to find and delete an entry for
line, and zero if there is no entry for line in /var/run/utmp. FILES /dev/* /etc/ttys /var/run/utmp /var/log/wtmpSEE ALSO
utmp(5) BSD December 14, 1995 BSD