LOGIN(3) | Library Functions Manual | LOGIN(3) |
void
login(struct utmp *ut);
int
logout(const char *line);
void
logwtmp(const char *line, const char *name, const char *host);
The login() function updates the /var/run/utmp and /var/log/wtmp files with user information contained in ut.
The logout() function removes the entry from /var/run/utmp corresponding to the device line.
The logwtmp() function adds an entry to /var/log/wtmp. Since login() will add the appropriate entry for /var/log/wtmp during a login, logwtmp() is usually used for logouts.
December 14, 1995 | NetBSD 6.1 |