Lines Matching defs:ut
115 struct utmp ut;
125 memset(&ut, 0, sizeof(struct utmp));
128 ut.ut_type = USER_PROCESS;
130 ut.ut_type = DEAD_PROCESS;
132 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
133 strncpy(ut.ut_name, name, sizeof(ut.ut_name));
135 ut.ut_pid = getpid();
138 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
140 ut.ut_time = time(NULL);
181 write(fd, &ut, sizeof(struct utmp)); /* XXX */