Lines Matching defs:utx
868 updwtmpx(const char *filex, struct utmpx *utx)
878 utmpx_api2frec(utx, &futx);
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;
1377 utx->ut_tv.tv_usec = 0;
1378 utx->ut_session = 0;
1379 bzero(utx->pad, sizeof (utx->pad));
1380 bzero(utx->ut_host, sizeof (utx->ut_host));
1381 utx->ut_syslen = 0;
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;