Lines Matching refs:ut
42 struct utmpx ut; in utempter_update_utmpx() local
46 (void) memset(&ut, 0, sizeof (ut)); in utempter_update_utmpx()
47 ut.ut_type = type; in utempter_update_utmpx()
48 ut.ut_pid = getpid(); in utempter_update_utmpx()
49 ut.ut_session = getsid(0); in utempter_update_utmpx()
50 (void) gettimeofday(&ut.ut_tv, NULL); in utempter_update_utmpx()
51 if (snprintf(ut.ut_id, sizeof (ut.ut_id), "f%d", fd) >= in utempter_update_utmpx()
52 sizeof (ut.ut_id)) in utempter_update_utmpx()
57 (void) strlcpy(ut.ut_user, pw->pw_name, sizeof (ut.ut_user)); in utempter_update_utmpx()
70 (void) strlcpy(ut.ut_line, ut1->ut_line, sizeof (ut.ut_line)); in utempter_update_utmpx()
75 (void) strlcpy(ut.ut_line, line + strlen("/dev/"), in utempter_update_utmpx()
76 sizeof (ut.ut_line)); in utempter_update_utmpx()
80 (void) strlcpy(ut.ut_host, host, sizeof (ut.ut_host)); in utempter_update_utmpx()
81 ut.ut_syslen = strlen(ut.ut_host) + 1; in utempter_update_utmpx()
85 (void) pututxline(&ut); in utempter_update_utmpx()