Lines Matching defs:ut
118 struct utmp ut;
125 memset(&ut, 0, sizeof(struct utmp));
142 ut.ut_type = USER_PROCESS;
144 ut.ut_type = DEAD_PROCESS;
148 strncpy(ut.ut_id, id, sizeof(ut.ut_id));
151 ut.ut_pid = getpid();
153 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
154 strncpy(ut.ut_name, name, sizeof(ut.ut_name));
156 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
158 time(&ut.ut_time);
159 if (write(fd, (char *) &ut, sizeof(struct utmp)) !=