Lines Matching refs:wtmp
51 struct utmpx wtmp; variable
53 struct utmp wtmp; variable
57 int utmp_len = sizeof(wtmp.ut_host);
739 extern struct utmp wtmp;
1156 wtmp.ut_time = time(NULL); in startslave()
1157 wtmp.ut_type = LOGIN_PROCESS; in startslave()
1158 wtmp.ut_pid = pid; in startslave()
1159 strncpy(wtmp.ut_user, "LOGIN", sizeof(wtmp.ut_user)); in startslave()
1160 strncpy(wtmp.ut_host, utmp_host, sizeof(wtmp.ut_host)); in startslave()
1161 strncpy(wtmp.ut_line, clean_ttyname(line), sizeof(wtmp.ut_line)); in startslave()
1163 strncpy(wtmp.ut_id, wtmp.ut_line + 3, sizeof(wtmp.ut_id)); in startslave()
1166 pututline(&wtmp); in startslave()
1169 write(i, &wtmp, sizeof(struct utmp)); in startslave()
1464 struct utmp wtmp; in rmut() local
1466 strncpy(wtmp.ut_line, clean_tty, sizeof(wtmp.ut_line)); in rmut()
1467 strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name)); in rmut()
1469 strncpy(wtmp.ut_host, "", sizeof(wtmp.ut_host)); in rmut()
1471 wtmp.ut_time = time(NULL); in rmut()
1472 write(f, &wtmp, sizeof(wtmp)); in rmut()
1516 write(f, u, sizeof(wtmp)); in rmut()
1525 strncpy(wtmp.ut_line, clean_tty, sizeof(wtmp.ut_line)); in rmut()
1526 strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name)); in rmut()
1528 strncpy(wtmp.ut_host, "", sizeof(wtmp.ut_host)); in rmut()
1530 wtmp.ut_time = time(NULL); in rmut()
1531 write(f, &wtmp, sizeof(wtmp)); in rmut()
1628 t = cleantmp(&wtmp); in cleanup()
1636 cleantmp(&wtmp); in cleanup()
1833 static char saved_path[sizeof(wtmp.ut_tpath)+1];
1834 static char saved_user[sizeof(wtmp.ut_user)+1];