Lines Matching refs:next
213 struct redir_struct *next; /* pointer to the next redirect in the list */ member
252 struct pipe *next; /* to track background commands */ member
264 struct close_me *next; member
273 struct variables *next; member
656 for (pi = job_list; pi; pi = pi->next) { in builtin_fg_bg()
670 for (pi = job_list; pi; pi = pi->next) { in builtin_fg_bg()
724 for (job = job_list; job; job = job->next) { in builtin_jobs()
778 for(e = top_vars; e; e=e->next) in builtin_set()
1178 new->next = close_me_head;
1188 close_me_head = close_me_head->next;
1195 for (c=close_me_head; c; c=c->next) {
1208 for (redir=prog->redirects; redir; redir=redir->next) {
1355 for (thejob = job_list; thejob; thejob = thejob->next)
1363 for (thejob = job_list; thejob->next; thejob = thejob->next) /* nothing */;
1364 thejob->next = xmalloc(sizeof(*thejob));
1365 thejob = thejob->next;
1370 thejob->next = NULL;
1397 job_list = pi->next;
1400 while (prev_pipe->next != pi)
1401 prev_pipe = prev_pipe->next;
1402 prev_pipe->next = pi->next;
1442 for (pi = job_list; pi; pi = pi->next) {
1772 for (rpipe = pi; rpipe; rpipe = rpipe->next) {
1775 (rpipe->next == NULL)) {
1783 (rpipe->next->r_mode == RES_IN &&
1784 rpipe->next->progs->argv != NULL))||
1786 rpipe->next->r_mode != RES_IN)) {
1794 for (; pi; pi = (flag_restore != 0) ? rpipe : pi->next) {
1825 if (!pi->next->progs->argv) continue;
1827 list = make_list_in(pi->next->progs->argv,
1985 rnext=r->next;
1999 struct pipe *pi, *next; local
2001 for (pi=head; pi; pi=next) {
2005 next=pi->next;
2006 pi->next=NULL;
2144 for (cur = top_vars; cur; cur=cur->next)
2184 for(cur = top_vars; cur; cur = cur->next) {
2219 cur->next = NULL;
2222 while(bottom->next) bottom=bottom->next;
2223 bottom->next = cur;
2248 for (cur = top_vars; cur; cur=cur->next) {
2253 struct variables *next = top_vars; local
2264 while (next->next != cur)
2265 next = next->next;
2266 next->next = cur->next;
2299 redir=redir->next;
2302 redir->next=NULL;
2305 last_redir->next=redir;
2341 pi->next = NULL;
2591 ctx->pipe->next = new_p;
2951 int next; local
2963 next = (ch == '\n') ? 0 : b_peek(input);
3002 if (next == EOF) {
3037 if (next == '>') {
3040 } else if (next == '(') {
3050 if (next == '<') {
3053 } else if (next == '>') {
3056 } else if (next == '(') {
3069 if (next=='&') {
3083 if (next=='|') {
3312 top_vars->next = NULL;
3488 tmp = cur->next;
3666 for (cur = top_vars; cur; cur = cur->next) {
3679 for (cur = top_vars; cur; cur = cur->next) {