Lines Matching defs:utmp
79 static struct utmpx *utmp;
95 * One of these per active utmp entry.
99 struct utmpx utmp;
204 for (nusers = 0; (utmp = getutxent()) != NULL;) {
212 if (utmp->ut_type != USER_PROCESS)
214 if (!(stp = ttystat(utmp->ut_line)))
225 if (!strcmp(utmp->ut_user, *user))
234 memmove(&ep->utmp, utmp, sizeof *utmp);
247 if (touched < ep->utmp.ut_tv.tv_sec) {
249 touched = ep->utmp.ut_tv.tv_sec;
254 save_p = p = *ep->utmp.ut_host ? ep->utmp.ut_host : "-";
442 W_DISPUSERSIZE, W_DISPUSERSIZE, ep->utmp.ut_user,
444 *ep->utmp.ut_line ?
445 (strncmp(ep->utmp.ut_line, "tty", 3) &&
446 strncmp(ep->utmp.ut_line, "cua", 3) ?
447 ep->utmp.ut_line : ep->utmp.ut_line + 3) : "-");
453 t = ep->utmp.ut_tv.tv_sec;