Home
last modified time | relevance | path

Searched refs:nfile (Results 1 – 8 of 8) sorted by relevance

/system/core/sh/
Dredir.c129 for (n = redir ; n ; n = n->nfile.next) { in redirect()
130 fd = n->nfile.fd; in redirect()
132 if ((n->nfile.type == NTOFD || n->nfile.type == NFROMFD) && in redirect()
177 int fd = redir->nfile.fd; in openredirect()
189 switch (redir->nfile.type) { in openredirect()
191 fname = redir->nfile.expfname; in openredirect()
202 fname = redir->nfile.expfname; in openredirect()
211 fname = redir->nfile.expfname; in openredirect()
216 fname = redir->nfile.expfname; in openredirect()
Dnodes.c75 SHELL_ALIGN(sizeof (struct nfile)),
76 SHELL_ALIGN(sizeof (struct nfile)),
77 SHELL_ALIGN(sizeof (struct nfile)),
78 SHELL_ALIGN(sizeof (struct nfile)),
79 SHELL_ALIGN(sizeof (struct nfile)),
175 calcsize(n->nfile.fname);
176 calcsize(n->nfile.next);
273 new->nfile.fname = copynode(n->nfile.fname);
274 new->nfile.fd = n->nfile.fd;
275 new->nfile.next = copynode(n->nfile.next);
Dshow.c138 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()
157 sharg(np->nfile.fname, fp); in shcmd()
Dnodes.h102 struct nfile { struct
145 struct nfile nfile; member
Dnodetypes114 NTO nfile # fd> fname
115 NCLOBBER nfile # fd>| fname
116 NFROM nfile # fd< fname
117 NFROMTO nfile # fd<> fname
118 NAPPEND nfile # fd>> fname
Dparser.c304 rpp = &n2->nfile.next; in command()
501 rpp = &n2->nfile.next; in command()
566 rpp = &n->nfile.next; in simplecmd()
670 n->nfile.fname = makename(); in parsefname()
1200 np = (union node *)stalloc(sizeof (struct nfile)); in readtoken1()
1202 np->nfile.fd = 1; in readtoken1()
1215 np->nfile.fd = 0; in readtoken1()
1218 if (sizeof (struct nfile) != sizeof (struct nhere)) { in readtoken1()
1220 np->nfile.fd = 0; in readtoken1()
1248 np->nfile.fd = digit_val(fd); in readtoken1()
Deval.c456 for (redir = n ; redir ; redir = redir->nfile.next) { in expredir()
465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR); in expredir()
466 redir->nfile.expfname = fn.list->text; in expredir()
Djobs.c1355 if (n->nfile.fd != i) { in cmdtxt()
1356 s[0] = n->nfile.fd + '0'; in cmdtxt()
1366 cmdtxt(n->nfile.fname); in cmdtxt()