Home | History | Annotate | Download | only in posix

Lines Matching refs:LL

386   long *ll = 0;
393 ll = mm->ptr;
394 for (j = 0; j<mm->len; j++) if (ll[j] == slot[match[i].len]) return 1;
398 return ll ? 0 : -1;
425 long long *slot = tb->slot, ll = (sl >= 0) ? slot[sl&63] : 0;
431 if (which==PS_PRI) ll = 39-ll;
433 ll >>= 12;
434 else if (which==PS_RSS) ll <<= 2;
435 else if (which==PS_VSZ) ll >>= 10;
436 else if (which==PS_PR && ll<-9) fmt="RT";
437 else if ((which==PS_RTPRIO || which==PS_BIT) && ll == 0) fmt="-";
438 sprintf(out, fmt, ll);
458 sprintf(out, "%lld", ll);
461 struct group *gr = bufgetgrgid(ll);
465 struct passwd *pw = bufgetpwuid(ll);
479 if (which==PS_ELAPSED) ll = (slot[SLOT_uptime]*j)-slot[SLOT_starttime];
480 seconds = ll/j;
495 sprintf(s, ".%02lld", (100*(ll%TT.ticks))/TT.ticks);
499 ll = slot[sl&63]*1000;
501 ll /= TT.si.totalram/((which==PS__VSZ) ? 1024 : 4096);
502 else if (slot[SLOT_upticks]) ll /= slot[SLOT_upticks];
503 sl = ll;
510 ll = slot[typos[which].slot];
511 if (which <= PS_SHR) ll *= sysconf(_SC_PAGESIZE);
512 if (TT.forcek) sprintf(out, "%lldk", ll/1024);
513 else human_readable(out, ll, 0);
541 } else if (which==PS_PCY) sprintf(out, "%.2s", get_sched_policy_name(ll));
999 bits |= 1LL<<fields->which;
1009 long *ll = pl->ptr;
1015 ll = pl->ptr = xrealloc(pl->ptr, sizeof(long)*(pl->len+16));
1019 ll[pl->len] = xstrtol(str, &end, 10);
1022 if (pl==&TT.ss && ll[pl->len]==0) ll[pl->len] = getsid(0);
1026 if (num && ll[pl->len]>0) {
1047 ll[pl->len++] = st.st_rdev;
1065 ll[pl->len++] = gr->gr_gid;
1072 ll[pl->len++] = pw->pw_uid;
1440 long long ll, up = 0;
1480 ll = stats[3] = stats[11] = 0;
1481 for (i = 0; i<8; i++) ll += stats[i]-stats[i+8];
1482 stats[3] = now - llabs(ll);
1485 ll = (llabs(stats[i]-stats[i+8])*1000)/up;
1486 pos += sprintf(pos, "% *lld%%%s", j, (ll+5)/10, cpufields[i]);
1496 long long ll, bits = 0;
1500 ll = 1LL<<fields->which;
1501 if (bits&ll) continue;
1502 bits |= ll;
1719 long long ll = tb->slot[SLOT_starttime];
1721 if (toys.optflags&FLAG_o) ll *= -1;
1722 if (TT.time && TT.time>ll) return;
1723 TT.time = ll;