Lines Matching defs:up
167 static void outline(Sfio_t *out,register struct utmpx *up,register State_t* sp)
170 time_t t = up->ut_time;
172 char line[sizeof(up->ut_line)+6];
176 sfsprintf(line,sizeof(line),"/dev/%s\0",up->ut_line);
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);
191 sfsprintf(line,sizeof(line),"/dev/%s\0",up->ut_line);
194 t = (t-(up->ut_time+30))/60;
204 if (*up->ut_host)
205 sfprintf(out," %-*.*s\n",sp->siz_host,sp->siz_host,up->ut_host);