Searched defs:pip (Results 1 - 3 of 3) sorted by relevance

/system/core/sh/
H A Dcd.c402 int pip[2]; local
406 if (pipe(pip) < 0)
410 (void) close(pip[0]);
411 if (pip[1] != 1) {
413 copyfd(pip[1], 1);
414 close(pip[1]);
420 (void) close(pip[1]);
421 pip[1] = -1;
423 while ((i = read(pip[0], p, pwd + MAXPWD - p)) > 0
428 (void) close(pip[
[all...]
H A Dredir.c260 int pip[2]; local
263 if (pipe(pip) < 0)
268 xwrite(pip[1], redir->nhere.doc->narg.text, len);
273 close(pip[0]);
282 xwrite(pip[1], redir->nhere.doc->narg.text, len);
284 expandhere(redir->nhere.doc, pip[1]);
288 close(pip[1]);
289 return pip[0];
H A Deval.c495 int pip[2]; local
506 pip[1] = -1;
508 if (sh_pipe(pip) < 0) {
520 if (pip[1] >= 0) {
521 close(pip[0]);
522 if (pip[1] != 1) {
524 copyfd(pip[1], 1);
525 close(pip[1]);
532 prevfd = pip[0];
533 close(pip[
554 int pip[2]; local
686 int pip[2]; local
[all...]

Completed in 45 milliseconds