Lines Matching defs:ut
135 # define dead(ut) (nonuser(ut))
139 # define dead(ut) ((ut).ut_type != USER_PROCESS)
144 # define dead(ut) ((ut).ut_type == DEAD_PROCESS)
147 # define dead(ut) 0
151 #define skip(ut) (!*ut.ut_user||!*ut.ut_line||dead(ut)|!strcasecmp(ut.ut_user,"login"))
213 struct utmpx ut;
218 state.siz_user = sizeof(ut.ut_user);
221 state.siz_line = sizeof(ut.ut_line);
225 state.siz_host = sizeof(ut.ut_host);
243 while(sfread(in,&ut,sizeof(struct utmpx))>0)
245 if(skip(ut))
247 if(line && strcmp(line,ut.ut_line))
253 sfprintf(out,"%s",ut.ut_user);
256 outline(out,&ut,&state);