Lines Matching defs:jp
69 register struct jobsave *jp;
72 jp = newof(0,struct jobsave,1,0);
73 jp->next = job_savelist;
74 job_savelist = jp;
219 register struct jobsave *jp = job_savelist;
223 if(jp)
226 job_savelist = jp->next;
229 jp = newof(0,struct jobsave,1,0);
230 if(jp)
232 jp->pid = pid;
233 jp->next = bck.list;
234 bck.list = jp;
235 jp->exitval = 0;
237 return(jp);
326 struct jobsave *jp;
412 jp = 0;
427 jp = jobsave_create(pid);
431 if(jp && WIFSTOPPED(wstat))
433 jp->exitval = SH_STOPSIG;
515 if(jp && pw== &dummy)
517 jp->exitval = pw->p_exit;
519 jp->exitval |= SH_EXITSIG;
849 register char *jp;
854 else while(jp = *jobs++)
857 if(*jp == '%')
860 pw = job_bystring(jp);
868 else if(isalpha(*jp))
870 job_cowalk(NULL,0,jp);
876 pid = (int)strtol(jp, (char**)0, 10);
1240 register struct jobsave *jp,*jpnext;
1251 for(jp=bck.list; jp;jp=jpnext)
1253 jpnext = jp->next;
1254 free((void*)jp);
1789 struct jobsave *jp;
1791 if(jp = jobsave_create(pw->p_pid))
1793 jp->exitval = pw->p_exit;
1795 jp->exitval |= SH_EXITSIG;
1915 register struct jobsave *jp = bck.list, *jpold=0;
1918 while(jp && count-->0)
1920 if(jp->pid==pid)
1922 if(pid==0 && !jp->next)
1924 jpold = jp;
1925 jp = jp->next;
1927 if(jp)
1931 r = jp->exitval;
1933 jpold->next = jp->next;
1935 bck.list = jp->next;
1940 jp->next = job_savelist;
1941 job_savelist = jp;
1944 free((void*)jp);
1962 register struct jobsave *jp;
1967 for(jp=bck.list; jp; jp=jpnext)
1969 jpnext = jp->next;
1970 if(jp->pid==sh.spid)
1972 jp->next = bp->list;
1973 bp->list = jp;
1977 job_chksave(jp->pid);