Lines Matching refs:pid
52 #define FAKEDPID0(p) (p->pid == 0 && p->psargs[0] == '\0')
58 pid_t pid; /* pid == -1 indicates this is a contract */
143 "usage:\t%s [-ac] [-z zone] [ {pid|user} ... ]\n",
232 p->pid = info.pr_pid;
252 if (p->pid == p->ppid)
254 if (p->pid == 1)
295 pid_t pid;
306 pid = strtoul(arg, &next, 10);
317 pid = -1;
324 * A match on pid causes the subtree starting at pid
326 * For uid matches, we never include pid 0 and only
327 * include the children of pid 0 if -a was specified.
329 if (p->pid == pid || (p->uid == uid && p->pid != 0 &&
333 if (p->pid != 0)
335 p->done != 1 && p->pid != 0;
366 if (p->pid >= 0) {
368 PIDWIDTH, (int)p->pid, n, p->psargs);
438 pp->pid = -1;
484 if (pp != NULL && p != pp && p->ppid == pp->pid) {
485 if (cflag && p->pid >= 0 &&
497 if (cflag && p->pid >= 0)