Lines Matching defs:utmp
256 struct utmpx utmp;
651 memset((void *)&utmp, 0, sizeof(utmp));
652 (void)gettimeofday(&utmp.ut_tv, NULL);
653 (void)strncpy(utmp.ut_user, username, sizeof(utmp.ut_user));
655 (void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
656 (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
657 utmp.ut_type = USER_PROCESS | UTMPX_AUTOFILL_MASK;
658 utmp.ut_pid = getpid();
659 pututxline(&utmp);