Lines Matching full:ep
107 } *ep, *ehead = NULL, **nextp = &ehead; variable
230 if ((ep = calloc(1, sizeof(struct entry))) == NULL) in main()
232 *nextp = ep; in main()
233 nextp = &ep->next; in main()
234 memmove(&ep->utmp, utmp, sizeof *utmp); in main()
235 ep->tdev = stp->st_rdev; in main()
240 if (ep->tdev == 0) { in main()
244 (void)sysctlbyname("machdep.consdev", &ep->tdev, &size, NULL, 0); in main()
247 if (touched < ep->utmp.ut_tv.tv_sec) { in main()
249 touched = ep->utmp.ut_tv.tv_sec; in main()
251 if ((ep->idle = now - touched) < 0) in main()
252 ep->idle = 0; in main()
254 save_p = p = *ep->utmp.ut_host ? ep->utmp.ut_host : "-"; in main()
302 ep->from = strdup(p); in main()
306 ep->save_from = strdup(save_p); in main()
350 for (ep = ehead; ep != NULL; ep = ep->next) { in main()
351 if (ep->tdev == kp->ki_tdev) { in main()
355 if (ep->kp == NULL && kp->ki_pgid == kp->ki_tpgid) { in main()
359 if (proc_compare(ep->kp, kp)) in main()
360 ep->kp = kp; in main()
368 dkp = ep->dkp; in main()
369 ep->dkp = kp; in main()
386 for (ep = ehead; ep != NULL; ep = ep->next) { in main()
387 if (ep->kp == NULL) { in main()
388 ep->args = strdup("-"); in main()
391 ep->args = fmt_argv(kvm_getargv(kd, ep->kp, argwidth), in main()
392 ep->kp->ki_comm, NULL, MAXCOMLEN); in main()
393 if (ep->args == NULL) in main()
417 for (ep = ehead; ep != NULL; ep = ep->next) { in main()
426 for (dkp = ep->dkp; dkp != NULL; dkp = debugproc(dkp)) { in main()
442 W_DISPUSERSIZE, W_DISPUSERSIZE, ep->utmp.ut_user, in main()
444 *ep->utmp.ut_line ? in main()
445 (strncmp(ep->utmp.ut_line, "tty", 3) && in main()
446 strncmp(ep->utmp.ut_line, "cua", 3) ? in main()
447 ep->utmp.ut_line : ep->utmp.ut_line + 3) : "-"); in main()
449 if (ep->save_from) in main()
450 xo_attr("address", "%s", ep->save_from); in main()
452 (int)fromwidth, (int)fromwidth, ep->from); in main()
453 t = ep->utmp.ut_tv.tv_sec; in main()
455 longidle = pr_idle(ep->idle); in main()
458 ep->args); in main()