Lines Matching refs:cur
72 struct pid *cur;
96 if ((cur = malloc(sizeof(struct pid))) == NULL) {
112 free(cur);
131 free(cur);
172 cur->fp = iop;
173 cur->pid = pid;
175 SLIST_INSERT_HEAD(&pidlist, cur, next);
197 struct pid *cur, *last = NULL;
205 SLIST_FOREACH(cur, &pidlist, next) {
206 if (cur->fp == iop)
208 last = cur;
210 if (cur == NULL) {
223 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
226 free(cur);