Lines Matching refs:ut

889 updwtmp(const char *file, struct utmp *ut)  in updwtmp()  argument
897 getutmpx(ut, &utmpx); in updwtmp()
900 _compat_updwtmp(file, ut); in updwtmp()
1147 struct futmpx *ut; /* "current" utmpx being examined */ in makeutx() local
1169 while ((ut = getoneutx(&offset)) != NULL) in makeutx()
1170 if (idcmp(utmp->ut_id, ut->ut_id)) { in makeutx()
1178 if (ut->ut_type == DEAD_PROCESS) in makeutx()
1181 (void) memcpy(saveid, ut->ut_id, in makeutx()
1185 if (ut) { in makeutx()
1191 (void) memcpy((caddr_t)utmp->ut_id, ut->ut_id, IDLEN); in makeutx()
1360 getutmpx(const struct utmp *ut, struct utmpx *utx) in getutmpx() argument
1362 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx()
1363 (void) bzero(&utx->ut_user[sizeof (ut->ut_user)], in getutmpx()
1364 sizeof (utx->ut_user) - sizeof (ut->ut_user)); in getutmpx()
1365 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line)); in getutmpx()
1366 (void) bzero(&utx->ut_line[sizeof (ut->ut_line)], in getutmpx()
1367 sizeof (utx->ut_line) - sizeof (ut->ut_line)); in getutmpx()
1368 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id)); in getutmpx()
1369 utx->ut_pid = ut->ut_pid; in getutmpx()
1370 utx->ut_type = ut->ut_type; in getutmpx()
1371 utx->ut_exit = ut->ut_exit; in getutmpx()
1372 utx->ut_tv.tv_sec = ut->ut_time; in getutmpx()
1384 getutmp(const struct utmpx *utx, struct utmp *ut) in getutmp() argument
1386 (void) memcpy(ut->ut_user, utx->ut_user, sizeof (ut->ut_user)); in getutmp()
1387 (void) memcpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in getutmp()
1388 (void) memcpy(ut->ut_id, utx->ut_id, sizeof (utx->ut_id)); in getutmp()
1389 ut->ut_pid = utx->ut_pid; in getutmp()
1390 ut->ut_type = utx->ut_type; in getutmp()
1391 ut->ut_exit = utx->ut_exit; in getutmp()
1392 ut->ut_time = utx->ut_tv.tv_sec; in getutmp()