Home | History | Annotate | Download | only in w

Lines Matching defs:utx

146 	struct utmpx *utx;
236 while ((utx = getutxent()) != NULL) {
237 if (utx->ut_type != USER_PROCESS)
247 strncmp(utx->ut_name, sel_user, sizeof(utx->ut_name)) != 0)
251 (void)memcpy(ep->line, utx->ut_line, sizeof(utx->ut_line));
252 ep->line[sizeof(utx->ut_line)] = '\0';
259 (void)memcpy(ep->name, utx->ut_name, sizeof(utx->ut_name));
260 ep->name[sizeof(utx->ut_name)] = '\0';
261 if (!nflag || getnameinfo((struct sockaddr *)&utx->ut_ss,
262 utx->ut_ss.ss_len, ep->host, sizeof(ep->host), NULL, 0,
264 (void)memcpy(ep->host, utx->ut_host,
265 sizeof(utx->ut_host));
266 ep->host[sizeof(utx->ut_host)] = '\0';
270 ep->tv = utx->ut_tv;
271 ep->pid = utx->ut_pid;