Lines Matching defs:cur
73 struct pid *cur;
97 if ((cur = malloc(sizeof(struct pid))) == NULL) {
113 free(cur);
132 free(cur);
182 cur->fp = iop;
183 cur->pid = pid;
185 SLIST_INSERT_HEAD(&pidlist, cur, next);
200 struct pid *cur, *last = NULL;
208 SLIST_FOREACH(cur, &pidlist, next) {
209 if (cur->fp == iop)
211 last = cur;
213 if (cur == NULL) {
226 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
229 free(cur);