Lines Matching refs:utmpx
51 struct utmpx wtmp;
1289 struct utmpx utmpx; in start_login() local
1298 memset(&utmpx, 0, sizeof(utmpx)); in start_login()
1299 strncpy(utmpx.ut_user, ".telnet", sizeof(utmpx.ut_user)); in start_login()
1300 strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line)); in start_login()
1302 strncpy(utmpx.ut_id, make_id(clean_tty), sizeof(utmpx.ut_id)); in start_login()
1304 utmpx.ut_pid = pid; in start_login()
1306 utmpx.ut_type = LOGIN_PROCESS; in start_login()
1309 utmpx.ut_tv.tv_sec = tv.tv_sec; in start_login()
1310 utmpx.ut_tv.tv_usec = tv.tv_usec; in start_login()
1312 if (pututxline(&utmpx) == NULL) in start_login()
1418 struct utmpx utmpx, *non_save_utxp; in rmut() local
1426 memset(&utmpx, 0, sizeof(utmpx)); in rmut()
1427 strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line)); in rmut()
1428 utmpx.ut_type = LOGIN_PROCESS; in rmut()
1429 non_save_utxp = getutxline(&utmpx); in rmut()
1431 struct utmpx *utxp; in rmut()
1435 utxp = malloc(sizeof(struct utmpx)); in rmut()