Lines Matching refs:out
167 static void outline(Sfio_t *out,register struct utmpx *up,register State_t* sp)
184 sfprintf(out,"%-*.*s %c %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,state,sp->siz_line,sp->siz_line,up->ut_line,date+4);
187 sfprintf(out,"%-*.*s %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,sp->siz_line,sp->siz_line,up->ut_line,date+4);
196 sfprintf(out," old ");
198 sfprintf(out, "%.2d:%.2d ",t/60,t%60);
201 sfprintf(out," . ");
205 sfprintf(out," %-*.*s\n",sp->siz_host,sp->siz_host,up->ut_host);
208 sfputc(out,'\n');
211 static int who(Sfio_t *in, Sfio_t *out, int flags)
239 sfprintf(out,"%-*.*s %2s %-*.*s %.12s %6s %s\n",state.siz_user-3,state.siz_user-3,"USER",t,state.siz_line,state.siz_line,"LINE","LOGIN-TIME","IDLE","FROM");
241 sfprintf(out,"%-*.*s %2s %-*.*s %.12s %s\n",state.siz_user-3,state.siz_user-3,"USER",t,state.siz_line,state.siz_line,"LINE","LOGIN-TIME","FROM");
252 sfputc(out,' ');
253 sfprintf(out,"%s",ut.ut_user);
256 outline(out,&ut,&state);
260 sfprintf(out,"\n# users=%d\n",count);