Lines Matching defs:utmp
77 int nolog; /* don't log in utmp or wtmp */
341 #include <utmp.h>
355 struct utmpx utmp;
357 struct utmp utmp;
369 /* the following 2 variables are needed for utmp mgmt */
383 SCPYN(utmp.ut_user, "");
407 sprintf(utmp.ut_line, "uucp%.4d", pid);
408 SCPYN(utmp.ut_name, "");
409 SCPYN(utmp.ut_host, "");
410 (void) time(&utmp.ut_time);
414 (void) write(wtmp, (char *)&utmp, sizeof (utmp));
469 * because they can use the utmp entry to retrieve
490 SCPYN(utmp.ut_line, line);
491 SCPYN(utmp.ut_name, pw->pw_name);
492 SCPYN(utmp.ut_host, remotehost);
493 time(&utmp.ut_time);
497 (void) write(wtmp, (char *)&utmp, sizeof (utmp));