Lines Matching defs:utmp
78 #include <utmp.h>
240 logit(LOG_NOTICE, "%s(): no utmp record for %s",
338 struct utmp utmp;
340 (void)memset((void *)&utmp, 0, sizeof(utmp));
341 utmp.ut_time = now->tv_sec;
342 (void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name));
344 (void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
345 (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
346 login(&utmp);