Lines Matching defs:cur
73 struct pid *cur;
96 if ((cur = malloc(sizeof(struct pid))) == NULL) {
113 free(cur);
168 cur->fp = iop;
169 cur->pid = pid;
171 SLIST_INSERT_HEAD(&pidlist, cur, next);
186 struct pid *cur, *last = NULL;
194 SLIST_FOREACH(cur, &pidlist, next) {
195 if (cur->fp == iop)
197 last = cur;
199 if (cur == NULL) {
212 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
215 free(cur);