Lines Matching refs:ut
328 struct utmpx ut;
340 memset(&ut, 0, sizeof ut);
341 ut.ut_type = DEAD_PROCESS;
342 gettimeofday(&ut.ut_tv, NULL);
343 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid());
344 ID0logout(&ut);
901 struct utmpx ut;
905 memset(&ut, 0, sizeof ut);
906 ut.ut_type = USER_PROCESS;
907 gettimeofday(&ut.ut_tv, NULL);
908 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid());
909 strncpy(ut.ut_user, name, sizeof ut.ut_user);
912 strncpy(ut.ut_host, p->name.base, sizeof ut.ut_host);
913 colon = memchr(ut.ut_host, ':', sizeof ut.ut_host);
917 strncpy(ut.ut_line, p->name.base, sizeof ut.ut_line);
920 strncpy(ut.ut_host, connstr, sizeof ut.ut_host);
921 ID0login(&ut);