Lines Matching refs:thiswork
100 int thiswork = 0; /* next job stream to allocate */ local
209 fprintf(stderr, "user %d job %d ", firstuser+i, thiswork);
229 if (work[thiswork].outf[0] != '\0') {
232 for (q = work[thiswork].outf; *q != '\n'; q++) ;
234 if (freopen(work[thiswork].outf, "w", stdout) == NULL) {
236 work[thiswork].outf);
241 execv(work[thiswork].cmd, work[thiswork].av);
253 child[i].line = child[i].bp = work[thiswork].input;
254 child[i].blen = work[thiswork].inpsize;
255 child[i].thisjob = thiswork;
256 child[i].firstjob = thiswork;
258 if (work[thiswork].outf[0] != '\0') {
261 for (q=work[thiswork].outf; *q != '\n'; q++)
265 thiswork++;
266 if (thiswork >= nwork)
267 thiswork = 0;