Lines Matching refs:ut
89 struct utmp ut; in ftpd_logwtmp() local
95 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmp()
96 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmp()
97 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpd_logwtmp()
98 (void)time(&ut.ut_time); in ftpd_logwtmp()
99 if (write(fd, (char *)&ut, sizeof(struct utmp)) != in ftpd_logwtmp()
121 struct utmpx ut; in ftpd_logwtmpx() local
127 (void)memset(&ut, 0, sizeof(ut)); in ftpd_logwtmpx()
128 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmpx()
129 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmpx()
130 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpd_logwtmpx()
132 (void)memcpy(&ut.ut_ss, &haddr->si_su, haddr->su_len); in ftpd_logwtmpx()
133 ut.ut_type = utx_type; in ftpd_logwtmpx()
135 ut.ut_exit.e_exit = (uint16_t)WEXITSTATUS(status); in ftpd_logwtmpx()
137 ut.ut_exit.e_termination = (uint16_t)WTERMSIG(status); in ftpd_logwtmpx()
138 (void)gettimeofday(&ut.ut_tv, NULL); in ftpd_logwtmpx()
139 if(write(fdx, (char *)&ut, sizeof(struct utmpx)) != in ftpd_logwtmpx()