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