Lines Matching refs:pid
56 struct pid { struct
57 SLIST_ENTRY(pid) next;
59 pid_t pid; argument
61 static SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist);
70 struct pid *cur; in popen()
72 int pdes[2], pid, twoway, cloexec; in popen() local
74 struct pid *p; in popen()
94 if ((cur = malloc(sizeof(struct pid))) == NULL) { in popen()
106 switch (pid = vfork()) { in popen()
160 cur->pid = pid; in popen()
181 struct pid *cur, *last = NULL; in pclose()
183 pid_t pid; in pclose() local
211 pid = _wait4(cur->pid, &pstat, 0, NULL); in pclose()
212 } while (pid == -1 && errno == EINTR); in pclose()
216 return (pid == -1 ? -1 : pstat); in pclose()