Lines Matching refs:pid
67 static struct pid { struct
68 struct pid *next; argument
73 pid_t pid; member
80 static struct pid *
83 struct pid *cur; in pdes_get()
124 struct pid *old; in pdes_child()
154 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) in pdes_parent() argument
175 cur->pid = pid; in pdes_parent()
181 pdes_error(int *pdes, struct pid *cur) in pdes_error()
191 struct pid *cur; in popenve()
193 pid_t pid; in popenve() local
201 switch (pid = vfork()) { in popenve()
218 pdes_parent(pdes, cur, pid, type); in popenve()
235 struct pid *cur, *last; in pcloseve()
237 pid_t pid; in pcloseve() local
268 pid = waitpid(cur->pid, &pstat, 0); in pcloseve()
269 } while (pid == -1 && errno == EINTR); in pcloseve()
273 return pid == -1 ? -1 : pstat; in pcloseve()