Lines Matching refs:ut
2149 struct utmp ut, *utp;
2165 memcpy(&ut, utp, sizeof(ut));
2168 memset(&ut, 0, sizeof(ut));
2170 if (ut.ut_id[0] == 0)
2171 strncpy(ut.ut_id, line + 3, sizeof(ut.ut_id));
2173 strncpy(ut.ut_user, name, sizeof(ut.ut_user));
2174 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
2176 time(&ut.ut_time);
2178 ut.ut_type = USER_PROCESS;
2179 ut.ut_pid = mypid;
2183 strncpy (ut.ut_host, host, sizeof(ut.ut_host));
2187 memcpy(&ut.ut_addr, (char *) &ipcp_hisoptions[0].hisaddr,
2188 sizeof(ut.ut_addr));
2192 ut.ut_host[0]=0;
2194 pututline(&ut);
2200 updwtmp(_PATH_WTMP, &ut);
2206 if (write (wtmp, (char *)&ut, sizeof(ut)) != sizeof(ut))