logwtmp (3) Linux Manual Page
updwtmp, logwtmp – append an entry to the wtmp file Synopsis#include <utmp.h> void updwtmp(const char *wtmp_file, const struct utmp *ut); void logwtmp(const char *line, const char *name, const char *host);For logwtmp(), link with -lutil. Descriptionupdwtmp() appends the utmp structure ut to the wtmp file. logwtmp() constructs a utmp structure using line, name, host, current time…
