Home
last modified time | relevance | path

Searched refs:ut_type (Results 1 – 25 of 56) sorted by relevance

123

/illumos-gate/usr/src/cmd/who/
H A Dwho.c524 if (utmpp->ut_type == RUN_LVL || utmpp->ut_type == DEAD_PROCESS) { in dump()
551 if (Topt && (utmpp->ut_type == USER_PROCESS)) { in dump()
578 if (utmpp->ut_type == USER_PROCESS) { in dump()
603 if (utmpp->ut_type != BOOT_TIME && in dump()
604 utmpp->ut_type != RUN_LVL && in dump()
605 utmpp->ut_type != ACCOUNTING) in dump()
611 if (utmpp->ut_type == DEAD_PROCESS) { in dump()
616 } else if (utmpp->ut_type != INIT_PROCESS) { in dump()
668 if (utmpp->ut_type == INIT_PROCESS) in dump()
673 if (dopt && utmpp->ut_type == DEAD_PROCESS) { in dump()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c148 dst->ut_type = src->ut_type; in utmpx_frec2api()
169 dst->ut_type = src->ut_type; in utmpx_api2frec()
318 if (fubuf.ut_type != EMPTY) { in getutxid()
319 switch (entry->ut_type) { in getutxid()
338 if (entry->ut_type == fubuf.ut_type) { in getutxid()
353 if (((type = fubuf.ut_type) == INIT_PROCESS || in getutxid()
428 if (fubuf.ut_type != EMPTY && in getutxline()
429 (fubuf.ut_type == LOGIN_PROCESS || in getutxline()
430 fubuf.ut_type == USER_PROCESS) && in getutxline()
513 (void) sprintf(type, "%d", entryx->ut_type); in invoke_utmp_update()
[all …]
H A Dgetut.c112 dst->ut_type = src->ut_type; in utmp_frec2api()
128 dst->ut_type = src->ut_type; in utmp_api2frec()
206 if (fubuf.ut_type != EMPTY) { in _compat_getutid()
207 switch (entry->ut_type) { in _compat_getutid()
227 if (entry->ut_type == fubuf.ut_type) { in _compat_getutid()
242 if (((type = fubuf.ut_type) == INIT_PROCESS || in _compat_getutid()
282 if (fubuf.ut_type != EMPTY && in _compat_getutline()
283 (fubuf.ut_type == LOGIN_PROCESS || in _compat_getutline()
284 fubuf.ut_type == USER_PROCESS) && in _compat_getutline()
491 if (utp->ut_type == DEAD_PROCESS) in _compat_makeut()
H A Dttyslot.c79 if ((ubuf.ut_type == INIT_PROCESS || in ttyslot()
80 ubuf.ut_type == LOGIN_PROCESS || in ttyslot()
81 ubuf.ut_type == USER_PROCESS) && in ttyslot()
/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c178 if ((rutmpx->ut_type != USER_PROCESS) && in main()
179 (rutmpx->ut_type != DEAD_PROCESS)) in main()
187 if (rutmpx->ut_type == USER_PROCESS) in main()
257 entryx->ut_type = temp; in load_utmpx_struct()
269 if (entryx->ut_type == USER_PROCESS) in load_utmpx_struct()
345 } else if (entryx->ut_type != DEAD_PROCESS) { in check_utmpx()
353 if (!(entryx->ut_type == USER_PROCESS || in check_utmpx()
354 entryx->ut_type == DEAD_PROCESS)) { in check_utmpx()
355 dprintf("Bad type type = %d\n", entryx->ut_type); in check_utmpx()
365 if (entryx->ut_type == USER_PROCESS && entryx->ut_pid != getppid()) { in check_utmpx()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c69 up->ut_type = USER_PROCESS; in account()
101 if (u->ut_type == USER_PROCESS) { in checkut_line()
128 if (up->ut_type == DEAD_PROCESS) { in cleanut()
150 up->ut_type = DEAD_PROCESS; in cleanut()
187 if (u->ut_type == INIT_PROCESS && u->ut_pid == ownpid) { in getty_account()
192 u->ut_type = LOGIN_PROCESS; in getty_account()
/illumos-gate/usr/src/cmd/last/
H A Dlast.c325 bp->ut_type == USER_PROCESS) { in main()
432 if (bp->ut_type == BOOT_TIME) { in main()
534 if ((bp->ut_type == BOOT_TIME) || (bp->ut_type == DOWN_TIME)) in want()
537 if (bp->ut_type != USER_PROCESS && bp->ut_type != DEAD_PROCESS && in want()
538 bp->ut_type != BOOT_TIME && bp->ut_type != DOWN_TIME) in want()
582 if ((bp->ut_type == USER_PROCESS && bp->ut_user[0] != '\0') || in record_time()
583 (bp->ut_type == BOOT_TIME) || (bp->ut_type == DOWN_TIME)) in record_time()
/illumos-gate/usr/src/cmd/acct/
H A Dacctcon1.c163 wb.ut_type = ACCOUNTING; in main()
205 if((wb.ut_type >= EMPTY) && (wb.ut_type <= UTMAXTYPE)) in valid()
247 switch(wb.ut_type) { in loop()
279 wb.ut_type, in loop()
340 wb.ut_type = INIT_PROCESS; /* fudge a logoff for reboot record */ in upall()
371 switch(wb.ut_type) { in update()
H A Dacctcon.c154 wb.ut_type = ACCOUNTING; in main()
192 if ((wb.ut_type >= EMPTY) && (wb.ut_type <= UTMAXTYPE)) in valid()
221 switch (wb.ut_type) { in loop()
255 wb.ut_type, in loop()
316 wb.ut_type = DEAD_PROCESS; /* fudge a logoff for reboot record. */ in upall()
343 switch (wb.ut_type) { in update()
H A Dwtmpfix.c215 if ((w->ut_type >= EMPTY) && (w->ut_type <= UTMAXTYPE)) in winp()
450 if (rectmp == 0 || Ut.ut_type == BOOT_TIME) in scanfile()
452 if (Ut.ut_type == RUN_LVL) { in scanfile()
476 if (Ut.ut_type == OLD_TIME) { in scanfile()
494 if ((Ut2.ut_type != NEW_TIME) || in scanfile()
559 switch (Ut.ut_type) { in inrange()
H A Dclosewtmp.c48 if (utmpx->ut_type == USER_PROCESS) { in main()
49 utmpx->ut_type = DEAD_PROCESS; in main()
H A Dfwtmp.c87 Ut.ut_type, in main()
139 &u->ut_type, in inp()
H A Dacctwtmp.c55 wb.ut_type = ACCOUNTING; in main()
H A Dutmp2wtmp.c58 if ((utmpx->ut_type == USER_PROCESS) && !(nonuserx(*utmpx))) { in main()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c90 ut.ut_type = INIT_PROCESS; in utmpx_mark_init()
143 if (up->ut_type == DEAD_PROCESS) { in utmpx_mark_dead()
152 up->ut_type = DEAD_PROCESS; in utmpx_mark_dead()
218 if (up->ut_type == RUN_LVL && in utmpx_get_runlevel()
245 u.ut_type = RUN_LVL; in utmpx_set_runlevel()
320 u.ut_type = type; in utmpx_write_entry()
/illumos-gate/usr/src/cmd/killall/
H A Dkillall.c64 if ((u->ut_type == LOGIN_PROCESS) || in main()
65 (u->ut_type == USER_PROCESS)) in main()
/illumos-gate/usr/src/head/
H A Dutmp.h84 short ut_type; /* type of entry */ member
106 int16_t ut_type; /* type of entry */ member
H A Dutmpx.h72 short ut_type; /* type of entry */ member
108 int16_t ut_type; /* type of entry */ member
/illumos-gate/usr/src/lib/libutempter/common/
H A Dutempter.c47 ut.ut_type = type; in utempter_update_utmpx()
64 ut2.ut_type = USER_PROCESS; in utempter_update_utmpx()
/illumos-gate/usr/src/cmd/bnu/
H A Dct.c601 if (u->ut_type == LOGIN_PROCESS
644 u -> ut_type = INIT_PROCESS; in startat()
696 u -> ut_type = USER_PROCESS;
708 u -> ut_type = DEAD_PROCESS;
/illumos-gate/usr/src/cmd/oamuser/user/
H A Disbusy.c58 utxptr->ut_type != DEAD_PROCESS) in isbusy()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c209 if ((all == REAL_USERS) && ((utent->ut_type != USER_PROCESS) ||
246 uav[cnt].ut_type = utent->ut_type;
/illumos-gate/usr/src/head/rpcsvc/
H A Drusers.x38 int ut_type; /* type of entry */ member
/illumos-gate/usr/src/ucbcmd/users/
H A Dusers.c50 if (utmpx->ut_type != USER_PROCESS) in main()
/illumos-gate/usr/src/cmd/saf/
H A Dsac.c306 if (uxp->ut_type != LOGIN_PROCESS) in readutmpx()
481 if (up->ut_type == DEAD_PROCESS) { in cleanutx()
502 up->ut_type = DEAD_PROCESS; in cleanutx()
539 up->ut_type = LOGIN_PROCESS; in account()

123