Lines Matching defs:utx
39 ulog_fill(struct utmpx *utx, const char *line)
48 memset(utx, 0, sizeof *utx);
50 utx->ut_pid = getpid();
51 gettimeofday(&utx->ut_tv, NULL);
52 strlcpy(utx->ut_line, line, sizeof utx->ut_line);
56 SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line);
59 memcpy(utx->ut_id, id, MIN(sizeof utx->ut_id, sizeof id));
65 struct utmpx utx;
67 ulog_fill(&utx, line);
68 utx.ut_type = USER_PROCESS;
69 strlcpy(utx.ut_user, user, sizeof utx.ut_user);
71 strlcpy(utx.ut_host, host, sizeof utx.ut_host);
72 pututxline(&utx);
78 struct utmpx utx;
80 ulog_fill(&utx, line);
81 utx.ut_type = DEAD_PROCESS;
82 pututxline(&utx);