Lines Matching defs:pid
58 struct pid {
59 SLIST_ENTRY(pid) next;
61 pid_t pid;
63 static SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist);
72 struct pid *cur;
74 int pdes[2], pid, twoway, cloexec;
77 struct pid *p;
96 if ((cur = malloc(sizeof(struct pid))) == NULL) {
122 switch (pid = vfork()) {
173 cur->pid = pid;
197 struct pid *cur, *last = NULL;
199 pid_t pid;
223 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
224 } while (pid == -1 && errno == EINTR);
228 return (pid == -1 ? -1 : pstat);