Lines Matching refs:next
217 struct redir_struct *next; /* pointer to the next redirect in the list */ member
256 struct pipe *next; /* to track background commands */ member
268 struct close_me *next; member
277 struct variables *next; member
660 for (pi = job_list; pi; pi = pi->next) { in builtin_fg_bg()
674 for (pi = job_list; pi; pi = pi->next) { in builtin_fg_bg()
728 for (job = job_list; job; job = job->next) { in builtin_jobs()
783 for(e = top_vars; e; e=e->next) in builtin_set()
1182 new->next = close_me_head;
1192 close_me_head = close_me_head->next;
1199 for (c=close_me_head; c; c=c->next) {
1212 for (redir=prog->redirects; redir; redir=redir->next) {
1359 for (thejob = job_list; thejob; thejob = thejob->next)
1367 for (thejob = job_list; thejob->next; thejob = thejob->next) /* nothing */;
1368 thejob->next = xmalloc(sizeof(*thejob));
1369 thejob = thejob->next;
1374 thejob->next = NULL;
1401 job_list = pi->next;
1404 while (prev_pipe->next != pi)
1405 prev_pipe = prev_pipe->next;
1406 prev_pipe->next = pi->next;
1446 for (pi = job_list; pi; pi = pi->next) {
1777 for (rpipe = pi; rpipe; rpipe = rpipe->next) {
1780 (rpipe->next == NULL)) {
1788 (rpipe->next->r_mode == RES_IN &&
1789 rpipe->next->progs->argv != NULL))||
1791 rpipe->next->r_mode != RES_IN)) {
1799 for (; pi; pi = (flag_restore != 0) ? rpipe : pi->next) {
1830 if (!pi->next->progs->argv) continue;
1832 list = make_list_in(pi->next->progs->argv,
1991 rnext=r->next;
2005 struct pipe *pi, *next; local
2007 for (pi=head; pi; pi=next) {
2011 next=pi->next;
2012 pi->next=NULL;
2150 for (cur = top_vars; cur; cur=cur->next)
2192 for(cur = top_vars; cur; cur = cur->next) {
2227 cur->next = NULL;
2230 while(bottom->next) bottom=bottom->next;
2231 bottom->next = cur;
2256 for (cur = top_vars; cur; cur=cur->next) {
2261 struct variables *next = top_vars; local
2272 while (next->next != cur)
2273 next = next->next;
2274 next->next = cur->next;
2307 redir=redir->next;
2310 redir->next=NULL;
2313 last_redir->next=redir;
2349 pi->next = NULL;
2599 ctx->pipe->next = new_p;
2959 int next; local
2971 next = (ch == '\n') ? 0 : b_peek(input);
3010 if (next == EOF) {
3045 if (next == '>') {
3048 } else if (next == '(') {
3058 if (next == '<') {
3061 } else if (next == '>') {
3064 } else if (next == '(') {
3077 if (next=='&') {
3091 if (next=='|') {
3324 top_vars->next = NULL;
3504 tmp = cur->next;
3676 for (cur = top_vars; cur; cur = cur->next) {
3689 for (cur = top_vars; cur; cur = cur->next) {