Lines Matching refs:utx
71 struct utmpx utx;
81 bzero(&utx, sizeof(utx));
87 utx.ut_type = strcmp(name, "reboot") == 0 ? BOOT_TIME : SHUTDOWN_TIME;
89 strncpy(utx.ut_user, name, sizeof(utx.ut_user));
90 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
91 utx.ut_pid = getpid();
92 utx.ut_type = *name ? USER_PROCESS : DEAD_PROCESS;
93 strncpy(utx.ut_host, host, sizeof(utx.ut_host));
95 (void)gettimeofday(&utx.ut_tv, NULL);
96 _utmpx_asl(&utx);
98 which = _utmp_compat(&utx, &u);