ps_t
static bool match_proc(ps_t *);
static void markprocs(ps_t *);
static int printone(ps_t *, int);
static void insertchild(ps_t *, ps_t *);
static void prsort(ps_t *);
static void printsubtree(ps_t *, int);
static void p_get_svc_fmri(ps_t *, ct_stathdl_t);
static ps_t *fakepid0(void);
ps_t *p;
ps_t *p = ps[n];
printlines(ps_t *p, int level)
ps_t *ancestor = p;
printone(ps_t *p, int level)
insertchild(ps_t *pp, ps_t *cp)
ps_t **here;
ps_t *sp;
p_get_svc_fmri(ps_t *p, ct_stathdl_t inhdl)
ctsort(ctid_t ctid, ps_t *p)
ps_t *pp;
ctps = xreallocarray(ctps, ctsize, sizeof (ps_t *));
prsort(ps_t *p)
ps_t *pp;
printsubtree(ps_t *p, int level)
match_proc(ps_t *p)
markprocs(ps_t *p)
static ps_t *
ps_t *p0, *p;
ps_t *p;
ps = xreallocarray(ps, psize, sizeof (ps_t));
static ps_t **ps; /* array of ps_t's */
static ps_t **ctps; /* array of contract ps_t's */
static ps_t *proc0; /* process 0 */
static ps_t *proc1; /* process 1 */