Lines Matching refs:ut
2173 struct utmp ut, *utp; in logwtmp() local
2189 memcpy(&ut, utp, sizeof(ut)); in logwtmp()
2192 memset(&ut, 0, sizeof(ut)); in logwtmp()
2194 if (ut.ut_id[0] == 0) in logwtmp()
2195 strncpy(ut.ut_id, line + 3, sizeof(ut.ut_id)); in logwtmp()
2197 strncpy(ut.ut_user, name, sizeof(ut.ut_user)); in logwtmp()
2198 strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in logwtmp()
2200 time(&ut.ut_time); in logwtmp()
2202 ut.ut_type = USER_PROCESS; in logwtmp()
2203 ut.ut_pid = mypid; in logwtmp()
2207 strncpy (ut.ut_host, host, sizeof(ut.ut_host)); in logwtmp()
2211 memcpy(&ut.ut_addr, (char *) &ipcp_hisoptions[0].hisaddr, in logwtmp()
2212 sizeof(ut.ut_addr)); in logwtmp()
2216 ut.ut_host[0]=0; in logwtmp()
2218 pututline(&ut); in logwtmp()
2224 updwtmp(_PATH_WTMP, &ut); in logwtmp()
2230 if (write (wtmp, (char *)&ut, sizeof(ut)) != sizeof(ut)) in logwtmp()