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