Lines Matching refs:ut
368 struct utmpx ut; local
379 (void) memset((char *)&ut, 0, sizeof (ut));
382 ut.ut_id[0] = 'u';
383 ut.ut_id[1] = 'u';
384 ut.ut_id[2] = SC_WILDC;
385 ut.ut_id[3] = SC_WILDC;
386 sprintf(ut.ut_line, "uucp%.4d", pid);
387 ut.ut_pid = getpid();
388 ut.ut_type = DEAD_PROCESS;
389 ut.ut_exit.e_termination = status & 0xFF;
390 ut.ut_exit.e_exit = WEXITSTATUS(status);
391 SCPYN(ut.ut_host, "");
392 ut.ut_syslen = 1;
393 (void) gettimeofday(&ut.ut_tv, NULL);
401 updwtmpx(WTMPX_FILE, &ut);
432 struct utmpx ut; local
442 (void) memset((void *)&ut, 0, sizeof (ut));
444 SCPYN(ut.ut_user, pw->pw_name);
445 ut.ut_id[0] = 'u';
446 ut.ut_id[1] = 'u';
447 ut.ut_id[2] = SC_WILDC;
448 ut.ut_id[3] = SC_WILDC;
451 SCPYN(ut.ut_line, line);
452 ut.ut_pid = getpid();
453 ut.ut_type = USER_PROCESS;
454 ut.ut_exit.e_termination = 0;
455 ut.ut_exit.e_exit = 0;
456 SCPYN(ut.ut_host, remotehost);
457 ut.ut_syslen = strlen(remotehost) + 1;
458 (void) gettimeofday(&ut.ut_tv, 0);
459 updwtmpx(WTMPX_FILE, &ut);