Lines Matching refs:pid
51 struct pid { struct
52 RB_ENTRY(pid) entry;
53 pid_t pid; argument
57 pidcmp(const struct pid *a, const struct pid *b) in pidcmp()
59 return (a->pid > b->pid ? 1 : a->pid < b->pid ? -1 : 0); in pidcmp()
62 RB_HEAD(pidtree, pid);
64 RB_GENERATE_STATIC(pidtree, pid, entry, pidcmp);
81 struct pid k, *p; in main()
85 long pid; in main() local
173 pid = strtol(s, &end, 10); in main()
174 if (pid < 0 || pid > pid_max || *end != '\0' || errno != 0) { in main()
178 if (pid == mypid) { in main()
185 p->pid = pid; in main()
191 EV_SET(e + nleft, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL); in main()
195 warn("%ld", pid); in main()
232 pid = e[i].ident; in main()
237 pid, WEXITSTATUS(status)); in main()
240 pid, WTERMSIG(status)); in main()
242 printf("%ld: terminated.\n", pid); in main()
245 k.pid = pid; in main()
256 printf("%d\n", p->pid); in main()