Lines Matching defs:ut
165 row(const struct utmpx *ut)
180 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line);
188 printf("%-16s ", ut->ut_user);
191 if (ut->ut_type == BOOT_TIME)
194 printf("%-12s ", ut->ut_line);
195 t = ut->ut_tv.tv_sec;
208 if (*ut->ut_host != '\0')
209 printf("(%s)", ut->ut_host);
268 struct utmpx ut, *utx;
276 strlcpy(ut.ut_line, tty, sizeof ut.ut_line);
279 if ((utx = getutxline(&ut)) != NULL && utx->ut_type == USER_PROCESS) {
285 memset(&ut, 0, sizeof(ut));
290 strlcpy(ut.ut_user, name, sizeof ut.ut_user);
291 gettimeofday(&ut.ut_tv, NULL);
292 row(&ut);