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