Lines Matching refs:progs
254 struct child_prog *progs; /* array of commands in pipe */ member
691 pi->progs[i].is_stopped = 0; in builtin_fg_bg()
1381 char **foo=pi->progs[0].argv;
1389 printf("[%d] %d\n", thejob->jobid, thejob->progs[0].pid);
1390 last_bg_pid = thejob->progs[0].pid;
1436 if (fg_pipe->progs[i].pid == childpid) {
1447 while (prognum < pi->num_progs && pi->progs[prognum].pid != childpid) {
1462 pi->progs[prognum].pid = 0;
1471 pi->progs[prognum].is_stopped = 1;
1572 if (pi->num_progs == 1) child = & (pi->progs[0]);
1590 } else if (pi->num_progs == 1 && pi->progs[0].argv != NULL) {
1684 child = & (pi->progs[i]);
1788 rpipe->next->progs->argv != NULL))||
1829 if (!pi->next->progs->argv) continue;
1831 list = make_list_in(pi->next->progs->argv,
1832 pi->progs->argv[0]);
1834 save_name = pi->progs->argv[0];
1835 pi->progs->argv[0] = NULL;
1839 free(pi->progs->argv[0]);
1843 pi->progs->argv[0] = save_name;
1845 pi->progs->glob_result.gl_pathv[0] =
1846 pi->progs->argv[0];
1851 if (pi->progs->argv[0])
1852 free(pi->progs->argv[0]);
1853 pi->progs->argv[0] = *list++;
1855 pi->progs->glob_result.gl_pathv[0] =
1856 pi->progs->argv[0];
1952 child = &pi->progs[i];
1996 free(pi->progs); /* children are an array, they get freed all at once */
1997 pi->progs=NULL;
2347 pi->progs = NULL;
2566 pi->progs = xrealloc(pi->progs, sizeof(*pi->progs) * (pi->num_progs+1));
2568 prog = pi->progs + pi->num_progs;