Lines Matching defs:ut
2159 struct utmp ut, *utp;
2175 memcpy(&ut, utp, sizeof(ut));
2178 memset(&ut, 0, sizeof(ut));
2180 if (ut.ut_id[0] == 0)
2181 strncpy(ut.ut_id, line + 3, sizeof(ut.ut_id));
2183 strncpy(ut.ut_user, name, sizeof(ut.ut_user));
2184 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
2186 time(&ut.ut_time);
2188 ut.ut_type = USER_PROCESS;
2189 ut.ut_pid = mypid;
2193 strncpy (ut.ut_host, host, sizeof(ut.ut_host));
2197 memcpy(&ut.ut_addr, (char *) &ipcp_hisoptions[0].hisaddr,
2198 sizeof(ut.ut_addr));
2202 ut.ut_host[0]=0;
2204 pututline(&ut);
2210 updwtmp(_PATH_WTMP, &ut);
2216 if (write (wtmp, (char *)&ut, sizeof(ut)) != sizeof(ut))