Searched refs:np (Results 1 – 3 of 3) sorted by relevance
126 union node *np; in shcmd() local132 for (np = cmd->ncmd.args ; np ; np = np->narg.next) { in shcmd()135 sharg(np, fp); in shcmd()138 for (np = cmd->ncmd.redirect ; np ; np = np->nfile.next) { in shcmd()141 switch (np->nfile.type) { in shcmd()151 if (np->nfile.fd != dftfd) in shcmd()152 fprintf(fp, "%d", np->nfile.fd); in shcmd()154 if (np->nfile.type == NTOFD || np->nfile.type == NFROMFD) { in shcmd()155 fprintf(fp, "%d", np->ndup.dupfd); in shcmd()157 sharg(np->nfile.fname, fp); in shcmd()
1198 union node *np; in readtoken1() local1200 np = (union node *)stalloc(sizeof (struct nfile)); in readtoken1()1202 np->nfile.fd = 1; in readtoken1()1205 np->type = NAPPEND; in readtoken1()1207 np->type = NCLOBBER; in readtoken1()1209 np->type = NTOFD; in readtoken1()1211 np->type = NTO; in readtoken1()1215 np->nfile.fd = 0; in readtoken1()1219 np = (union node *)stalloc(sizeof (struct nhere)); in readtoken1()1220 np->nfile.fd = 0; in readtoken1()[all …]
1246 union node *np; in cmdtxt() local1321 for (np = n->ncase.cases; np; np = np->nclist.next) { in cmdtxt()1322 cmdtxt(np->nclist.pattern); in cmdtxt()1324 cmdtxt(np->nclist.body); in cmdtxt()1380 cmdlist(union node *np, int sep) in cmdlist() argument1382 for (; np; np = np->narg.next) { in cmdlist()1385 cmdtxt(np); in cmdlist()1386 if (sep && np->narg.next) in cmdlist()