Home
last modified time | relevance | path

Searched refs:ut_pid (Results 1 – 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c147 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 Dgetut.c111 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 Dtmutmp.c68 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 Dtmexpress.c433 if (u->ut_pid == ownpid) { in find_ttyname()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c83 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 Dfork.c293 (void) kill(utmpp->ut_pid, 9); in fork_sulogin()
/illumos-gate/usr/src/cmd/utmpd/
H A Dutmpd.c563 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 Dutmp.h83 short ut_pid; /* short for compat. - process id */ member
105 int16_t ut_pid; /* process id */ member
H A Dutmpx.h71 pid_t ut_pid; /* process id */ member
107 pid32_t ut_pid; /* process id */ member
/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c254 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 Dfwtmp.c86 Ut.ut_pid, in main()
138 &u->ut_pid, in inp()
H A Dwtmpfix.c545 (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 Dct.c607 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 Din.uucpd.c389 ut.ut_pid = getpid();
454 ut.ut_pid = getpid();
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c176 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 Dkillall.c66 (void) kill(u->ut_pid, sig); in main()
/illumos-gate/usr/src/cmd/who/
H A Dwho.c606 (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 Dsac.c318 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 Dutempter.c48 ut.ut_pid = getpid(); in utempter_update_utmpx()
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c610 u->ut_pid = getpid(); in single()
623 entryx.ut_pid = getpid(); in single()
/illumos-gate/usr/src/cmd/psradm/
H A Dpsradm.c175 ut.ut_pid = getpid(); in psr_set_state()
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c551 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 Dnlps_serv.c700 utline.ut_pid = getpid(); in exec_cmd()
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c2046 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 Din.rlogind.c1148 ut.ut_pid = getpid(); in doit()
1519 if (up->ut_pid == pid) { in rmut()

12