Lines Matching defs:ut
162 struct utmpx *ut;
240 if ((ut = malloc(size)) == NULL) {
248 utmpbegin = ut;
253 while ((ut < utmpend) && ((utp = getutxent()) != NULL))
254 (void) memcpy(ut++, utp, sizeof (*ut));
262 for (ut = utmpbegin; ut < utmpend; ut++) {
263 if (ut->ut_type == USER_PROCESS) {
265 } else if (ut->ut_type == BOOT_TIME) {
266 uptime = now - ut->ut_xtime;
281 ut = utmpbegin; /* rewind utmp data */
464 for (ut = utmpbegin; ut < utmpend; ut++) {
467 if (ut->ut_type != USER_PROCESS)
469 if (sel_user && strncmp(ut->ut_name, sel_user, NMAX) != 0)
474 ut->ut_name);
478 ut->ut_line);
481 tim = ut->ut_xtime;
485 idle = findidle(ut->ut_line);
487 showtotals(findhash((pid_t)ut->ut_pid));
489 tim = ut->ut_xtime;
492 LINE_WIDTH, (int)LMAX, ut->ut_line,
493 LOGIN_WIDTH, (int)NMAX, ut->ut_name, tm->tm_hour,
495 showproc(findhash((pid_t)ut->ut_pid));