Lines Matching refs:s_utent
1118 static struct utmpx s_utent;
1124 if (sizeof(s_utent.ut_line) < 16)
1136 if (str_getlen(&line_str) >= sizeof(s_utent.ut_line))
1141 vsf_sysutil_strcpy(s_utent.ut_line, str_getbuf(&line_str),
1142 sizeof(s_utent.ut_line));
1146 s_utent.ut_type = USER_PROCESS;
1147 s_utent.ut_pid = vsf_sysutil_getpid();
1148 vsf_sysutil_strcpy(s_utent.ut_user, str_getbuf(p_user_str),
1149 sizeof(s_utent.ut_user));
1150 vsf_sysutil_strcpy(s_utent.ut_host, str_getbuf(p_host_str),
1151 sizeof(s_utent.ut_host));
1153 s_utent.ut_tv.tv_sec = vsf_sysutil_get_cached_time_sec();
1155 (void) pututxline(&s_utent);
1157 updwtmpx(WTMPX_FILE, &s_utent);
1168 s_utent.ut_type = DEAD_PROCESS;
1169 vsf_sysutil_memclr(s_utent.ut_user, sizeof(s_utent.ut_user));
1170 vsf_sysutil_memclr(s_utent.ut_host, sizeof(s_utent.ut_host));
1171 s_utent.ut_tv.tv_sec = 0;
1173 (void) pututxline(&s_utent);
1176 s_utent.ut_tv.tv_sec = vsf_sysutil_get_cached_time_sec();
1177 updwtmpx(WTMPX_FILE, &s_utent);