Lines Matching defs:utmpx
109 #include <utmpx.h>
2467 static struct utmpx utmpx;
2471 strncpy(utmpx.ut_user, name, sizeof(utmpx.ut_user));
2472 strncpy(utmpx.ut_id, ifname, sizeof(utmpx.ut_id));
2473 strncpy(utmpx.ut_line, line, sizeof(utmpx.ut_line));
2474 utmpx.ut_pid = getpid();
2475 utmpx.ut_type = USER_PROCESS;
2477 utmpx.ut_type = DEAD_PROCESS;
2479 gettimeofday(&utmpx.ut_tv, NULL);
2480 updwtmpx("/var/adm/wtmpx", &utmpx);