Home | History | Annotate | Download | only in pppd

Lines Matching refs:utmpx

104 #include <utmpx.h>
2466 static struct utmpx utmpx;
2470 strncpy(utmpx.ut_user, name, sizeof(utmpx.ut_user));
2471 strncpy(utmpx.ut_line, line, sizeof(utmpx.ut_line));
2472 strncpy(utmpx.ut_host, host, sizeof(utmpx.ut_host));
2474 utmpx.ut_syslen = strlen(host) + 1;
2475 if (utmpx.ut_syslen > sizeof(utmpx.ut_host))
2476 utmpx.ut_syslen = sizeof(utmpx.ut_host);
2478 utmpx.ut_pid = getpid();
2479 utmpx.ut_type = USER_PROCESS;
2481 utmpx.ut_type = DEAD_PROCESS;
2483 gettimeofday(&utmpx.ut_tv, NULL);
2484 updwtmpx("/var/adm/wtmpx", &utmpx);