UPDWTMPSection: Linux Programmer's Manual (3)Updated: 2003-07-18 |
UPDWTMPSection: Linux Programmer's Manual (3)Updated: 2003-07-18 |
#include <utmp.h> void updwtmp(const char *wtmp_file, const struct utmp *ut);
void logwtmp(const char *line, const char *name, const char *host);
logwtmp() constructs an utmp structure using line, name, host, current time and current process id. Then it calls updwtmp() to append the structure to the utmp file.