Lines Matching defs:ut
891 updwtmp(const char *file, struct utmp *ut)
899 getutmpx(ut, &utmpx);
902 _compat_updwtmp(file, ut);
1150 struct futmpx *ut; /* "current" utmpx being examined */
1172 while (ut = getoneutx(&offset))
1173 if (idcmp(utmp->ut_id, ut->ut_id)) {
1181 if (ut->ut_type == DEAD_PROCESS)
1184 (void) memcpy(saveid, ut->ut_id,
1188 if (ut) {
1194 (void) memcpy((caddr_t)utmp->ut_id, ut->ut_id,
1364 getutmpx(const struct utmp *ut, struct utmpx *utx)
1366 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user));
1367 (void) bzero(&utx->ut_user[sizeof (ut->ut_user)],
1368 sizeof (utx->ut_user) - sizeof (ut->ut_user));
1369 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line));
1370 (void) bzero(&utx->ut_line[sizeof (ut->ut_line)],
1371 sizeof (utx->ut_line) - sizeof (ut->ut_line));
1372 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id));
1373 utx->ut_pid = ut->ut_pid;
1374 utx->ut_type = ut->ut_type;
1375 utx->ut_exit = ut->ut_exit;
1376 utx->ut_tv.tv_sec = ut->ut_time;
1388 getutmp(const struct utmpx *utx, struct utmp *ut)
1390 (void) memcpy(ut->ut_user, utx->ut_user, sizeof (ut->ut_user));
1391 (void) memcpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line));
1392 (void) memcpy(ut->ut_id, utx->ut_id, sizeof (utx->ut_id));
1393 ut->ut_pid = utx->ut_pid;
1394 ut->ut_type = utx->ut_type;
1395 ut->ut_exit = utx->ut_exit;
1396 ut->ut_time = utx->ut_tv.tv_sec;