Lines Matching defs:j_list
118 static void remove_job(struct jobset *j_list, struct job *job);
471 static void remove_job(struct jobset *j_list, struct job *job)
476 if (job == j_list->head) {
477 j_list->head = job->next;
479 prevjob = j_list->head;
485 if (j_list->head)
486 last_jobid = j_list->head->jobid;
495 static void checkjobs(struct jobset *j_list)
503 for (job = j_list->head; job; job = job->next) {
523 remove_job(j_list, job);
536 static void checkjobs(struct jobset *j_list)
542 static void remove_job(struct jobset *j_list, struct job *job)
1171 struct jobset *j_list = newjob->job_list;
1175 for (thejob = j_list->head; thejob; thejob = thejob->next)
1180 if (!j_list->head) {
1181 thejob = j_list->head = xmalloc(sizeof(*thejob));
1183 for (thejob = j_list->head; thejob->next; thejob = thejob->next) /* nothing */;