Lines Matching refs:up

464 	struct utmpx *up;  in cleanutx()  local
466 char user[sizeof (up->ut_user) + 1]; in cleanutx()
467 char ttyn[sizeof (up->ut_line) + 1]; in cleanutx()
468 char rhost[sizeof (up->ut_host) + 1]; in cleanutx()
482 while (up = getutxent()) { in cleanutx()
483 if (up->ut_pid == pid) { in cleanutx()
484 if (up->ut_type == DEAD_PROCESS) { in cleanutx()
490 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx()
491 user[sizeof (up->ut_user)] = '\0'; in cleanutx()
492 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx()
493 ttyn[sizeof (up->ut_line)] = '\0'; in cleanutx()
494 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); in cleanutx()
495 rhost[sizeof (up->ut_host)] = '\0'; in cleanutx()
505 up->ut_type = DEAD_PROCESS; in cleanutx()
506 up->ut_exit.e_termination = WTERMSIG(sp->sc_exit); in cleanutx()
507 up->ut_exit.e_exit = WEXITSTATUS(sp->sc_exit); in cleanutx()
509 (void) memcpy(up->ut_id, sp->sc_utid, in cleanutx()
510 sizeof (up->ut_id)); in cleanutx()
511 (void) time(&up->ut_tv.tv_sec); in cleanutx()
512 if (modutx(up) == NULL) { in cleanutx()
518 (void) pututxline(up); in cleanutx()
519 updwtmpx("wtmpx", up); in cleanutx()
538 struct utmpx *up = &utmpx; /* and a pointer to it */ in account() local
540 (void) memset(up, '\0', sizeof (utmpx)); in account()
541 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user)); in account()
542 up->ut_pid = pid; in account()
543 up->ut_type = LOGIN_PROCESS; in account()
544 up->ut_id[0] = 'P'; in account()
545 up->ut_id[1] = 'M'; in account()
546 up->ut_id[2] = SC_WILDC; in account()
547 up->ut_id[3] = SC_WILDC; in account()
548 (void) time(&up->ut_xtime); in account()
549 if (makeutx(up) == NULL) { in account()
553 (void) memcpy(sp->sc_utid, up->ut_id, IDLEN); in account()