Lines Matching refs:utent
195 struct utmpx *utent; local
204 while ((utent = getutxent()) != NULL && (limit == 0 || cnt < limit)) {
205 if (utent->ut_line[0] == '\0' || utent->ut_user[0] == '\0')
211 if ((all == REAL_USERS) && ((utent->ut_type != USER_PROCESS) ||
212 nonuserx(*utent)))
221 (*q)->ui_idle = findidle(utent->ut_line,
222 sizeof (utent->ut_line), now);
223 if (strncmp(utent->ut_line, "console",
228 usys5to_ru(utent, &((*q)->ui_utmp));
231 sizeof (utent->ut_line),
232 utent->ut_line,
233 sizeof (utent->ut_name),
234 utent->ut_name,
235 ctime(&utent->ut_xtime),
243 s_malodup(utent->ut_host, utent->ut_syslen);
244 uav[cnt].ut_user = s_malodup(utent->ut_user,
245 sizeof (utent->ut_user));
246 uav[cnt].ut_line = s_malodup(utent->ut_line,
247 sizeof (utent->ut_line));
248 uav[cnt].ut_type = utent->ut_type;
249 uav[cnt].ut_time = utent->ut_xtime;
250 uav[cnt].ut_idle = findidle(utent->ut_line,
251 sizeof (utent->ut_line), now);
252 if (strncmp(utent->ut_line, "console",