Home
last modified time | relevance | path

Searched refs:utline (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/cmd/listen/
H A Dnlps_serv.c660 struct utmpx utline; in exec_cmd() local
698 strncpy(utline.ut_user, wdbp->dbf_id, in exec_cmd()
699 sizeof (utline.ut_user) - 1); in exec_cmd()
700 sprintf(utline.ut_id, "ps%c%c", SC_WILDC, SC_WILDC); in exec_cmd()
701 strncpy(utline.ut_line, device, sizeof (utline.ut_line) - 1); in exec_cmd()
702 utline.ut_pid = getpid(); in exec_cmd()
703 utline.ut_type = USER_PROCESS; in exec_cmd()
704 utline.ut_exit.e_termination = 0; in exec_cmd()
705 utline.ut_exit.e_exit = 0; in exec_cmd()
706 utline.ut_xtime = (time_t) time((time_t *)0); in exec_cmd()
[all …]
H A Dlisten.c1350 struct utmpx utline; local
1396 strncpy(utline.ut_user, dummy, sizeof (utline.ut_user) - 1);
1397 sprintf(utline.ut_id, "ls%c%c", SC_WILDC, SC_WILDC);
1398 strncpy(utline.ut_line, device, sizeof (utline.ut_line) - 1);
1399 utline.ut_pid = getpid();
1400 utline.ut_type = USER_PROCESS;
1401 utline.ut_exit.e_termination = 0;
1402 utline.ut_exit.e_exit = 0;
1403 utline.ut_xtime = (time_t) time((time_t *)0);
1404 makeutx(&utline);