/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 147 dst->ut_pid = src->ut_pid; in utmpx_frec2api() 168 dst->ut_pid = src->ut_pid; in utmpx_api2frec() 512 (void) sprintf(pid, "%d", (int)entryx->ut_pid); in invoke_utmp_update() 694 (pid_t)tmpxbuf.ut_pid); in pututxline() 935 if (ucp->ut_pid != fup->ut_pid) { in modutx() 936 sendpid(REMPID, (pid_t)fup->ut_pid); in modutx() 937 sendpid(ADDPID, (pid_t)ucp->ut_pid); in modutx() 943 sendpid(REMPID, (pid_t)ucp->ut_pid); in modutx() 1196 sendpid(ADDPID, (pid_t)utmp->ut_pid); in makeutx() 1218 sendpid(ADDPID, (pid_t)utmp->ut_pid); in makeutx() [all …]
|
H A D | getut.c | 111 dst->ut_pid = src->ut_pid; in utmp_frec2api() 127 dst->ut_pid = src->ut_pid; in utmp_api2frec()
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 68 up->ut_pid = getpid(); in account() 78 log("makeutx for pid %d failed", up->ut_pid); in account() 100 if (u->ut_pid == ownpid) { in checkut_line() 127 if (up->ut_pid == pid) { in cleanut() 187 if (u->ut_type == INIT_PROCESS && u->ut_pid == ownpid) { in getty_account()
|
H A D | tmexpress.c | 433 if (u->ut_pid == ownpid) { in find_ttyname()
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | utmpx.c | 83 ut.ut_pid = pid; in utmpx_mark_init() 140 if (up->ut_pid == pid) { in utmpx_mark_dead() 244 u.ut_pid = 0; in utmpx_set_runlevel() 278 u.ut_pid = n_prev[i]; in utmpx_set_runlevel() 316 u.ut_pid = 0; in utmpx_write_entry()
|
H A D | fork.c | 293 (void) kill(utmpp->ut_pid, 9); in fork_sulogin()
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 563 if (proc_is_alive(utmpx->ut_pid)) { in scan_utmps() 568 if (find_pid(utmpx->ut_pid, &i) == 0) in scan_utmps() 569 add_pid(utmpx->ut_pid); /* No, add it */ in scan_utmps() 575 if (find_pid(utmpx->ut_pid, &i) == 1) in scan_utmps() 576 rem_pid(utmpx->ut_pid, i, CLEANIT); in scan_utmps() 954 if (u->ut_pid == pidtable[i].pl_pid) { in clean_entry() 971 dprintf((" clean_utmpx_ent: %d\n", (int)u->ut_pid)); in clean_utmpx_ent()
|
/illumos-gate/usr/src/head/ |
H A D | utmp.h | 83 short ut_pid; /* short for compat. - process id */ member 105 int16_t ut_pid; /* process id */ member
|
H A D | utmpx.h | 71 pid_t ut_pid; /* process id */ member 107 pid32_t ut_pid; /* process id */ member
|
/illumos-gate/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 254 entryx->ut_pid = temp; in load_utmpx_struct() 365 if (entryx->ut_type == USER_PROCESS && entryx->ut_pid != getppid()) { in check_utmpx() 366 dprintf("Bad pid = %d\n", entryx->ut_pid); in check_utmpx() 575 printf("ut_pid = \"%d\" \n", rutmpx->ut_pid); in fputmpx()
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | fwtmp.c | 86 Ut.ut_pid, in main() 138 &u->ut_pid, in inp()
|
H A D | wtmpfix.c | 545 (Ut.ut_pid != 0) || \ 553 if (Ut.ut_pid < 0) { in inrange() 633 (Ut.ut_pid > 0)) { in inrange() 666 if (Ut.ut_pid == 0) { in inrange()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ct.c | 607 CDEBUG(7, "ut_pid %d\n", u->ut_pid); 610 if (kill(u->ut_pid, 0) == 0 || errno == EPERM) { 640 u -> ut_pid = getpid (); in startat() 695 u -> ut_pid = (pid_t) _Pid;
|
H A D | in.uucpd.c | 389 ut.ut_pid = getpid(); 454 ut.ut_pid = getpid();
|
/illumos-gate/usr/src/cmd/write/ |
H A D | write.c | 176 for (self.ut_pid = 0, count = 0; (ubuf = getutxent()) != NULL; ) { in main() 271 if (self.ut_pid == 0) { in main() 311 else if (self.ut_pid == 0) { in main()
|
/illumos-gate/usr/src/cmd/killall/ |
H A D | killall.c | 66 (void) kill(u->ut_pid, sig); in main()
|
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 606 (void) printf(" %5ld", utmpp->ut_pid); in dump() 684 (void) printf(" %c %5ld %c", pterm, utmpp->ut_pid, in dump() 802 utmpt.ut_pid = getpid(); in process()
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sac.c | 318 sp->sc_pid = uxp->ut_pid; in readutmpx() 350 savesp->sc_pid = uxp->ut_pid; in readutmpx() 480 if (up->ut_pid == pid) { in cleanutx() 538 up->ut_pid = pid; in account()
|
/illumos-gate/usr/src/lib/libutempter/common/ |
H A D | utempter.c | 48 ut.ut_pid = getpid(); in utempter_update_utmpx()
|
/illumos-gate/usr/src/cmd/sulogin/ |
H A D | sulogin.c | 610 u->ut_pid = getpid(); in single() 623 entryx.ut_pid = getpid(); in single()
|
/illumos-gate/usr/src/cmd/psradm/ |
H A D | psradm.c | 175 ut.ut_pid = getpid(); in psr_set_state()
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 551 showtotals(findhash((pid_t)ut->ut_pid)); in main() 559 showproc(findhash((pid_t)ut->ut_pid)); in main()
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | nlps_serv.c | 700 utline.ut_pid = getpid(); in exec_cmd()
|
/illumos-gate/usr/src/cmd/login/ |
H A D | login.c | 2046 utmpx.ut_pid = getpid(); in update_utmpx_entry() 2081 u->ut_pid == login_pid)) { in update_utmpx_entry()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rlogind.c | 1148 ut.ut_pid = getpid(); in doit() 1519 if (up->ut_pid == pid) { in rmut()
|