Lines Matching defs:utp
454 struct utmp *utp; /* "current" utmp entry being examined */
485 while ((utp = _compat_getutent()) != 0) {
486 if (idcmp(utmp->ut_id, utp->ut_id))
488 if (utp->ut_type == DEAD_PROCESS)
490 (void) memcpy(saveid, utp->ut_id, _UTMP_ID_LEN);
493 if (utp) {
497 (void) memcpy(utmp->ut_id, utp->ut_id, _UTMP_ID_LEN);
498 utp = _compat_pututline(utmp);
499 if (utp)
500 _compat_updwtmp(WTMP_FILE, utp);
503 return (utp);
514 utp = _compat_pututline(utmp);
515 if (utp)
516 _compat_updwtmp(WTMP_FILE, utp);
519 return (utp);
523 utp = _compat_pututline(utmp);
524 if (utp)
525 _compat_updwtmp(WTMP_FILE, utp);
527 return (utp);
538 _compat_modut(struct utmp *utp)
547 if (utp->ut_id[i] == _UTMP_ID_WILDCARD)
551 utmp = *utp;