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