Lines Matching refs:nprocs
267 for (i = 1; i < jp->nprocs; i++) in fgcmd()
272 for (i = 0; i < jp->nprocs; i++) in fgcmd()
276 if (i >= jp->nprocs) { in fgcmd()
347 for (i = 1; i < jp->nprocs; i++) in bgcmd()
366 for (i = 0; i < jp->nprocs; i++) in restartjob()
369 if (i >= jp->nprocs) in restartjob()
371 for (ps = jp->ps, i = jp->nprocs ; --i >= 0 ; ps++) { in restartjob()
398 procno = jp->nprocs; in showjob()
422 procno = jp->nprocs; in showjob()
565 if (jp->nprocs == 0) { in showjobs()
591 jp->nprocs = 0; in freejob()
641 status = job->ps[job->nprocs].status; in waitcmd()
668 for (i = 0 ; i < jp->nprocs ; ) { in jobidcmd()
670 out1c(++i < jp->nprocs ? ' ' : '\n'); in jobidcmd()
731 if (!jp->used || jp->nprocs <= 0) in getjob()
751 if (jp->used && jp->nprocs > 0 in getjob()
752 && jp->ps[jp->nprocs - 1].pid == pid) in getjob()
774 makejob(union node *node, int nprocs) in makejob() argument
814 jp->nprocs = 0; in makejob()
819 if (nprocs > 1) { in makejob()
820 jp->ps = ckmalloc(nprocs * sizeof (struct procstat)); in makejob()
825 TRACE(("makejob(0x%lx, %d) returns %%%d\n", (long)node, nprocs, in makejob()
872 if (jp == NULL || jp->nprocs == 0) in forkparent()
884 struct procstat *ps = &jp->ps[jp->nprocs++]; in forkparent()
914 if (jp == NULL || jp->nprocs == 0) in forkchild()
932 if ((jp == NULL || jp->nprocs == 0) && in forkchild()
943 if ((jp == NULL || jp->nprocs == 0) && in forkchild()
1003 status = jp->ps[jp->nprocs - 1].status; in waitforjob()
1014 jp - jobtab + 1, jp->nprocs, status, st )); in waitforjob()
1066 for (sp = jp->ps ; sp < jp->ps + jp->nprocs ; sp++) { in dowait()