Lines Matching defs:utp
457 struct utmp *utp; /* "current" utmp entry being examined */
488 while ((utp = _compat_getutent()) != 0) {
489 if (idcmp(utmp->ut_id, utp->ut_id))
491 if (utp->ut_type == DEAD_PROCESS)
493 (void) memcpy(saveid, utp->ut_id, IDLEN);
496 if (utp) {
500 (void) memcpy(utmp->ut_id, utp->ut_id, IDLEN);
501 utp = _compat_pututline(utmp);
502 if (utp)
503 _compat_updwtmp(WTMP_FILE, utp);
506 return (utp);
517 utp = _compat_pututline(utmp);
518 if (utp)
519 _compat_updwtmp(WTMP_FILE, utp);
522 return (utp);
526 utp = _compat_pututline(utmp);
527 if (utp)
528 _compat_updwtmp(WTMP_FILE, utp);
530 return (utp);
541 _compat_modut(struct utmp *utp)
550 if ((unsigned char)utp->ut_id[i] == SC_WILDC)
554 utmp = *utp;