Lines Matching defs:out
122 SZ Memory Size (4k pages needed to completely swap out process)
426 char *buf = toybuf+sizeof(toybuf)-260, *out = buf, *s;
441 sprintf(out, fmt, ll);
445 out = tb->str;
448 if (--sl) out += tb->offset[--sl];
452 s = out;
453 for (i = 0; (which==PS_ARGS) ? i < slot[SLOT_argv0len] : out[i]; i++)
454 if (out[i] == '/') s = out+i+1;
455 out = s;
457 if (which>=PS_COMM && !*out) sprintf(out = buf, "[%s]", tb->str);
461 sprintf(out, "%lld", ll);
466 if (gr) out = gr->gr_name;
470 if (pw) out = pw->pw_name;
488 if (!s && (seconds>unit || j == 1+(which!=PS_TIME))) s = out;
497 if (which==PS_TIME_ && s-out<8)
508 sprintf(out, "%d", sl/10);
509 if (which!=PS_C && sl<1000) sprintf(out+strlen(out), ".%d", sl%10);
515 if (TT.forcek) sprintf(out, "%lldk", ll/1024);
516 else human_readable(out, ll, 0);
520 } else if (which==PS_F) sprintf(out, "%llo", (slot[SLOT_flags]>>6)&5);
522 s = out;
540 strftime(out, 260, "%F %T", localtime(&t));
541 out = out+strlen(out)-3-abs(field->len);
542 if (out<buf) out = buf;
544 } else if (which==PS_PCY) sprintf(out, "%.2s", get_sched_policy_name(ll));
547 return out;
559 char *out = string_field(tb, field);
573 olen = (TT.tty) ? utf8len(out) : strlen(out);
604 if (TT.tty) width -= draw_trim(out, pad, len);
605 else width -= printf("%*.*s", pad, len, out);
908 // Fill out tid and thread count for each entry in group
1199 // Figure out which fields to display
1666 // (All the pgrep/pkill functions drop out when building ps standalone.)