Lines Matching full:up
285 * monitors (only called during a recover start up). Note:
288 * will clean up). This is mainly for stuck processes,
326 * up the entry if it dies. in readutmpx()
421 * clean up old utmpx if its there in startpm()
439 /* ok to take signals now that the table is up-to-table */ in startpm()
461 struct utmpx *up; in cleanutx() local
463 char user[sizeof (up->ut_user) + 1]; in cleanutx()
464 char ttyn[sizeof (up->ut_line) + 1]; in cleanutx()
465 char rhost[sizeof (up->ut_host) + 1]; in cleanutx()
467 * check to see if there is a utmpx entry to clean up (indicated by a non in cleanutx()
479 while (up = getutxent()) { in cleanutx()
480 if (up->ut_pid == pid) { in cleanutx()
481 if (up->ut_type == DEAD_PROCESS) { in cleanutx()
483 * Cleaned up elsewhere. in cleanutx()
487 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx()
488 user[sizeof (up->ut_user)] = '\0'; in cleanutx()
489 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx()
490 ttyn[sizeof (up->ut_line)] = '\0'; in cleanutx()
491 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); in cleanutx()
492 rhost[sizeof (up->ut_host)] = '\0'; in cleanutx()
502 up->ut_type = DEAD_PROCESS; in cleanutx()
503 up->ut_exit.e_termination = WTERMSIG(sp->sc_exit); in cleanutx()
504 up->ut_exit.e_exit = WEXITSTATUS(sp->sc_exit); in cleanutx()
505 (void) memcpy(up->ut_id, sp->sc_utid, in cleanutx()
506 sizeof (up->ut_id)); in cleanutx()
507 (void) time(&up->ut_tv.tv_sec); in cleanutx()
508 if (modutx(up) == NULL) { in cleanutx()
514 (void) pututxline(up); in cleanutx()
515 updwtmpx("wtmpx", up); in cleanutx()
534 struct utmpx *up = &utmpx; /* and a pointer to it */ in account() local
536 (void) memset(up, '\0', sizeof (utmpx)); in account()
537 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user)); in account()
538 up->ut_pid = pid; in account()
539 up->ut_type = LOGIN_PROCESS; in account()
540 up->ut_id[0] = 'P'; in account()
541 up->ut_id[1] = 'M'; in account()
542 up->ut_id[2] = SC_WILDC; in account()
543 up->ut_id[3] = SC_WILDC; in account()
544 (void) time(&up->ut_xtime); in account()
545 if (makeutx(up) == NULL) { in account()
549 (void) memcpy(sp->sc_utid, up->ut_id, IDLEN); in account()
829 * reap - clean up dead children, equivalent to a "fast" poll failure
877 /* first, remove the utmpx entry and clean up any links */ in pollfail()
1111 * startpoll - enable polling on command pipe by setting up to catch SIGPOLL