Lines Matching defs:fp
52 struct process *fp;
109 fp = pp;
111 if ((fp->p_flags & (PPTIME|PRUNNING|PSTOPPED)) == 0 &&
113 fp->p_rusage.ru_utime.tv_sec+fp->p_rusage.ru_stime.tv_sec >=
115 fp->p_flags |= PTIME;
116 jobflags |= fp->p_flags;
117 } while ((fp = fp->p_friends) != pp);
124 fp = pp;
126 if (fp->p_flags&PSTOPPED)
127 fp->p_flags |= PREPORTED;
128 } while ((fp = fp->p_friends) != pp);
129 while (fp->p_pid != fp->p_jobid)
130 fp = fp->p_friends;
132 if (pcurrent && pcurrent != fp)
134 pcurrent = fp;
136 pclrcurr(fp);
142 !eq(dcwd->di_name, fp->p_cwd->di_name)) {
153 fp->p_flags |= PNEEDNOTE;
190 struct process *fp, *pp;
200 for (pp = (fp = &proclist)->p_next; pp != PNULL; pp = (fp = pp)->p_next)
202 fp->p_next = pp->p_next;
208 pp = fp;
221 struct process *fp;
229 fp = pp;
231 if ((fp->p_flags&(PFOREGND|PRUNNING)) == PRUNNING)
233 } while ((fp = fp->p_friends) != pp);
238 fp = pp;
243 jobflags |= fp->p_flags;
244 while ((fp = (fp->p_friends)) != pp);
275 !eq(dcwd->di_name, fp->p_cwd->di_name)) {
288 fp = pp;
290 if (fp->p_reason)
291 reason = fp->p_flags & (PSIGNALED|PINTERRUPTED) ?
292 fp->p_reason | ABN_TERM : fp->p_reason;
293 } while ((fp = fp->p_friends) != pp);
434 struct process *fp;
440 for (fp = pcurrjob; fp->p_friends != pcurrjob; fp = fp->p_friends)
442 fp->p_friends = pp;