Lines Matching refs:ut
35 extern void updwtmp(const char *filename, const struct utmp *ut);
648 struct utmp ut;
671 memcpy(&ut, utp, sizeof(ut));
674 memset(&ut, 0, sizeof(ut));
675 safe_strncpy(ut.ut_id, line + 3, sizeof(ut.ut_id));
679 strcpy(ut.ut_user, "LOGIN");
680 safe_strncpy(ut.ut_line, line, sizeof(ut.ut_line));
682 safe_strncpy(ut.ut_host, fakehost, sizeof(ut.ut_host));
684 ut.ut_time = t;
685 ut.ut_type = LOGIN_PROCESS;
686 ut.ut_pid = mypid;
688 pututline(&ut);
694 updwtmp(bb_path_wtmp_file, &ut);