wtmp
wtmp.ut_time = time(NULL);
wtmp.ut_type = LOGIN_PROCESS;
wtmp.ut_pid = pid;
strncpy(wtmp.ut_user, "LOGIN", sizeof(wtmp.ut_user));
strncpy(wtmp.ut_host, utmp_host, sizeof(wtmp.ut_host));
strncpy(wtmp.ut_line, clean_ttyname(line), sizeof(wtmp.ut_line));
strncpy(wtmp.ut_id, wtmp.ut_line + 3, sizeof(wtmp.ut_id));
pututline(&wtmp);
write(i, &wtmp, sizeof(struct utmp));
struct utmp wtmp;
strncpy(wtmp.ut_line, clean_tty, sizeof(wtmp.ut_line));
strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name));
strncpy(wtmp.ut_host, "", sizeof(wtmp.ut_host));
wtmp.ut_time = time(NULL);
write(f, &wtmp, sizeof(wtmp));
write(f, u, sizeof(wtmp));
strncpy(wtmp.ut_line, clean_tty, sizeof(wtmp.ut_line));
strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name));
strncpy(wtmp.ut_host, "", sizeof(wtmp.ut_host));
wtmp.ut_time = time(NULL);
write(f, &wtmp, sizeof(wtmp));
t = cleantmp(&wtmp);
cleantmp(&wtmp);
static char saved_path[sizeof(wtmp.ut_tpath)+1];
static char saved_user[sizeof(wtmp.ut_user)+1];
struct utmpx wtmp;
struct utmp wtmp;
int utmp_len = sizeof(wtmp.ut_host);
extern struct utmp wtmp;
static void wtmp(void);
wtmp();