Lines Matching defs:up

287  *		monitors (only called during a recover start up).  Note:
290 * will clean up). This is mainly for stuck processes,
328 * up the entry if it dies.
424 * clean up old utmpx if its there
442 /* ok to take signals now that the table is up-to-table */
464 struct utmpx *up;
466 char user[sizeof (up->ut_user) + 1];
467 char ttyn[sizeof (up->ut_line) + 1];
468 char rhost[sizeof (up->ut_host) + 1];
470 * check to see if there is a utmpx entry to clean up (indicated by a non
482 while (up = getutxent()) {
483 if (up->ut_pid == pid) {
484 if (up->ut_type == DEAD_PROCESS) {
486 * Cleaned up elsewhere.
490 strncpy(user, up->ut_user, sizeof (up->ut_user));
491 user[sizeof (up->ut_user)] = '\0';
492 strncpy(ttyn, up->ut_line, sizeof (up->ut_line));
493 ttyn[sizeof (up->ut_line)] = '\0';
494 strncpy(rhost, up->ut_host, sizeof (up->ut_host));
495 rhost[sizeof (up->ut_host)] = '\0';
505 up->ut_type = DEAD_PROCESS;
506 up->ut_exit.e_termination = WTERMSIG(sp->sc_exit);
507 up->ut_exit.e_exit = WEXITSTATUS(sp->sc_exit);
509 (void) memcpy(up->ut_id, sp->sc_utid,
510 sizeof (up->ut_id));
511 (void) time(&up->ut_tv.tv_sec);
512 if (modutx(up) == NULL) {
518 (void) pututxline(up);
519 updwtmpx("wtmpx", up);
538 struct utmpx *up = &utmpx; /* and a pointer to it */
540 (void) memset(up, '\0', sizeof (utmpx));
541 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user));
542 up->ut_pid = pid;
543 up->ut_type = LOGIN_PROCESS;
544 up->ut_id[0] = 'P';
545 up->ut_id[1] = 'M';
546 up->ut_id[2] = SC_WILDC;
547 up->ut_id[3] = SC_WILDC;
548 (void) time(&up->ut_xtime);
549 if (makeutx(up) == NULL) {
553 (void) memcpy(sp->sc_utid, up->ut_id, IDLEN);
831 * reap - clean up dead children, equivalent to a "fast" poll failure
879 /* first, remove the utmpx entry and clean up any links */
1116 * startpoll - enable polling on command pipe by setting up to catch SIGPOLL