Manual Pages for UNIX Darwin command on man logwtmp
MyWebUniversity

Manual Pages for UNIX Darwin command on man logwtmp

LOGIN(3) BSD Library Functions Manual LOGIN(3)

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/wtmp

SEE ALSO

utmp(5) BSD December 14, 1995 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™