Lines Matching defs:jp
84 register struct jobsave *jp;
87 jp = newof(0,struct jobsave,1,0);
88 jp->next = job_savelist;
89 job_savelist = jp;
235 register struct jobsave *jp = job_savelist;
239 if(jp)
242 job_savelist = jp->next;
245 jp = newof(0,struct jobsave,1,0);
246 if(jp)
248 jp->pid = pid;
249 jp->next = bck.list;
250 bck.list = jp;
251 jp->exitval = 0;
253 return(jp);
343 struct jobsave *jp;
431 jp = 0;
446 jp = jobsave_create(pid);
450 if(jp && WIFSTOPPED(wstat))
452 jp->exitval = SH_STOPSIG;
534 if(jp && pw== &dummy)
536 jp->exitval = pw->p_exit;
538 jp->exitval |= SH_EXITSIG;
871 register char *jp;
876 else while(jp = *jobs++)
879 if(*jp == '%')
882 pw = job_bystring(jp);
890 else if(isalpha(*jp))
892 job_cowalk(NULL,0,jp);
898 pid = pid_fromstring(jp);
1256 register struct jobsave *jp,*jpnext;
1267 for(jp=bck.list; jp;jp=jpnext)
1269 jpnext = jp->next;
1270 free((void*)jp);
1815 struct jobsave *jp;
1817 if(jp = jobsave_create(pw->p_pid))
1819 jp->exitval = pw->p_exit;
1821 jp->exitval |= SH_EXITSIG;
1941 register struct jobsave *jp = bck.list, *jpold=0;
1946 while(jp && count-->0)
1948 if(jp->pid==pid)
1950 if(pid==0 && !jp->next)
1952 jpold = jp;
1953 jp = jp->next;
1955 if(!jp && pid && (bp=bp->prev))
1958 jp = bp->list;
1961 if(jp)
1965 r = jp->exitval;
1967 jpold->next = jp->next;
1969 bp->list = jp->next;
1974 jp->next = job_savelist;
1975 job_savelist = jp;
1978 free((void*)jp);
1998 register struct jobsave *jp;
2003 for(jp=bck.list; jp; jp=jp->next)
2005 if (!jp->next)
2006 end = jp;