Lines Matching defs:procpid
230 * toybox as a struct procpid. Simple ps calls then pass toybuf directly to
234 * struct procpid contains a slot[] array of 64 bit values, with the following
281 struct procpid {
299 * slot: which slot[] out of procpid. Negative means it's a string field.
340 // String fields (-1 is procpid->str, rest are str+offset[1-slot])
502 static char *string_field(struct procpid *tb, struct ofields *field)
639 struct procpid *tb = p;
700 // Fills toybuf with struct procpid and either DIRTREE_SAVEs a copy to ->extra
708 // sources for procpid->offset[] data
713 struct procpid *tb = (void *)toybuf;
729 struct procpid *tb2 = (struct procpid *)TT.threadparent->extra;
872 // arrays in struct procpid, and we reserve 260 bytes scratch space at the
882 struct procpid *ptb = 0;
1003 struct procpid *tb;
1219 struct procpid *ta = *(struct procpid **)aa, *tb = *(struct procpid **)bb;
1245 static struct procpid **collate_leaves(struct procpid **tb, struct dirtree *dt)
1259 // Allocate struct procpid array of length count and populate it with ->extra
1261 static struct procpid **collate(int count, struct dirtree *dt)
1263 struct procpid **tbsort = xmalloc(count*sizeof(struct procpid *));
1364 struct procpid **tbsort = collate(TT.kcount, dt);
1463 struct procpid **tb;
1517 mix.tb = xmalloc((old.count+new.count)*sizeof(struct procpid));
1522 struct procpid *otb = old.count ? *old.tb : 0,
1553 qsort(mix.tb, mix.count, sizeof(struct procpid *), (void *)ksort);
1630 struct procpid tb;
1632 memset(&tb, 0, sizeof(struct procpid));
1822 static void do_pgk(struct procpid *tb)
1843 struct procpid *tb = p;