Lines Matching defs:out
299 * slot: which slot[] out of procpid. Negative means it's a string field.
324 {"SZ", "4k pages to swap out", 5, SLOT_vsize},
504 char *buf = toybuf+sizeof(toybuf)-260, *out = buf, *s;
519 sprintf(out, fmt, ll);
523 out = tb->str;
526 if (--sl) out += tb->offset[--sl];
530 s = out;
531 for (i = 0; (which==PS_ARGS) ? i < slot[SLOT_argv0len] : out[i]; i++)
532 if (out[i] == '/') s = out+i+1;
533 out = s;
535 if (which>=PS_COMM && !*out) sprintf(out = buf, "[%s]", tb->str);
539 sprintf(out, "%lld", ll);
544 if (gr) out = gr->gr_name;
548 if (pw) out = pw->pw_name;
566 if (!s && (seconds>unit || j == 1+(which!=PS_TIME))) s = out;
575 if (which==PS_TIME_ && s-out<8)
586 sprintf(out, "%d", sl/10);
587 if (which!=PS_C && sl<1000) sprintf(out+strlen(out), ".%d", sl%10);
594 s = out;
601 if (TT.forcek) sprintf(out, "%lldk", ll/1024);
606 } else if (which==PS_F) sprintf(out, "%llo", (slot[SLOT_flags]>>6)&5);
608 s = out;
626 strftime(out, 260, "%F %T", localtime(&t));
627 out = out+strlen(out)-3-abs(field->len);
628 if (out<buf) out = buf;
630 } else if (which==PS_PCY) sprintf(out, "%.2s", get_sched_policy_name(ll));
633 return out;
645 char *out = string_field(tb, field);
660 olen = (TT.tty) ? utf8len(out) : strlen(out);
691 if (TT.tty) width -= draw_trim(out, pad, len);
692 else width -= printf("%*.*s", pad, len, out);
725 // Grab PID and figure out if we're a thread or a process
1011 // it exited out from under us
1028 // Fill out tid and thread count for each entry in group (if it didn't exit
1029 // out from under us again; asynchronous reads of unlocked data are fun!)
1318 // Figure out which fields to display
1811 // (All the pgrep/pkill functions drop out when building ps standalone.)