Lines Matching defs:utmpx
60 #include <utmpx.h>
2336 static struct utmpx utmpx;
2340 strncpy(utmpx.ut_user, name, sizeof(utmpx.ut_user));
2341 strncpy(utmpx.ut_id, ifname, sizeof(utmpx.ut_id));
2342 strncpy(utmpx.ut_line, line, sizeof(utmpx.ut_line));
2343 utmpx.ut_pid = getpid();
2344 utmpx.ut_type = USER_PROCESS;
2346 utmpx.ut_type = DEAD_PROCESS;
2348 gettimeofday(&utmpx.ut_tv, NULL);
2349 updwtmpx("/var/adm/wtmpx", &utmpx);