Lines Matching refs:jsinfo
210 struct jobspec *jsinfo;
221 jsinfo = malloc(sizeof(struct jobspec));
222 memset(jsinfo, 0, sizeof(struct jobspec));
223 jsinfo->startnum = jsinfo->endrange = -1;
238 jsinfo->wantedhost = rhside;
265 jsinfo->wanteduser = rhside;
276 jsinfo->wantedhost = lhside;
278 jsinfo->wanteduser = lhside;
287 jsinfo->wanteduser = lhside;
292 jsinfo->wanteduser = rhside;
308 jsinfo->startnum = jsinfo->endrange = jobnum;
317 if (jobnum < jsinfo->startnum)
321 jsinfo->endrange = jobnum;
337 if (jsinfo->wantedhost != NULL)
339 if (jsinfo->wanteduser != NULL)
342 jsinfo->wantedhost = numstr;
346 if ((jsinfo->startnum < 0) && (jsinfo->wanteduser == NULL) &&
347 (jsinfo->wantedhost == NULL))
355 STAILQ_INSERT_TAIL(js_hdr, jsinfo, nextjs);
359 if (jsinfo->startnum >= 0) {
360 if (jsinfo->startnum == jsinfo->endrange)
361 printf(" jobnum = %ld", jsinfo->startnum);
363 printf(" jobrange = %ld to %ld", jsinfo->startnum,
364 jsinfo->endrange);
368 if ((jsinfo->wanteduser != NULL) || (jsinfo->wantedhost != NULL)) {
370 if (jsinfo->wanteduser != NULL)
371 printf(" user = %s", jsinfo->wanteduser);
372 if (jsinfo->wantedhost != NULL)
373 printf(" host = %s", jsinfo->wantedhost);
389 if (jsinfo != NULL)
390 free(jsinfo);