Lines Matching refs:ps_t
69 } ps_t;
71 static ps_t **ps; /* array of ps_t's */
73 static int nps; /* number of ps_t's */
74 static ps_t **ctps; /* array of contract ps_t's */
76 static int nctps; /* number of contract ps_t's */
77 static ps_t *proc0; /* process 0 */
78 static ps_t *proc1; /* process 1 */
88 static void markprocs(ps_t *p);
89 static int printone(ps_t *p, int level);
90 static void insertchild(ps_t *, ps_t *);
91 static void prsort(ps_t *p);
92 static void printsubtree(ps_t *p, int level);
94 static ps_t *fakepid0(void);
112 ps_t *p;
219 if ((ps = realloc(ps, psize*sizeof (ps_t *))) == NULL) {
224 if ((p = malloc(sizeof (ps_t))) == NULL) {
321 ps_t *p = ps[n];
358 printone(ps_t *p, int level)
380 insertchild(ps_t *pp, ps_t *cp)
383 ps_t **here;
384 ps_t *sp;
402 ctsort(ctid_t ctid, ps_t *p)
404 ps_t *pp;
426 if ((ctps = realloc(ctps, ctsize * sizeof (ps_t *))) == NULL) {
431 pp = calloc(sizeof (ps_t), 1);
448 * we need to adjust the zoneid in the contract's ps_t as
457 * its internal tree of ps_t's
472 prsort(ps_t *p)
475 ps_t *pp;
502 printsubtree(ps_t *p, int level)
514 markprocs(ps_t *p)
526 static ps_t *
529 ps_t *p0, *p;
532 if ((p0 = malloc(sizeof (ps_t))) == NULL) {
536 (void) memset(p0, '\0', sizeof (ps_t));