Lines Matching refs:pip
4634 int pip[2];
4637 if (pipe(pip) < 0)
4642 full_write(pip[1], redir->nhere.doc->narg.text, len);
4647 close(pip[0]);
4656 full_write(pip[1], redir->nhere.doc->narg.text, len);
4658 expandhere(redir->nhere.doc, pip[1]);
4662 close(pip[1]);
4663 return pip[0];
5248 int pip[2];
5251 if (pipe(pip) < 0)
5256 close(pip[0]);
5257 if (pip[1] != 1) {
5259 copyfd(pip[1], 1);
5260 close(pip[1]);
5266 close(pip[1]);
5267 result->fd = pip[0];
7672 int pip[2];
7684 pip[1] = -1;
7686 if (pipe(pip) < 0) {
7693 if (pip[1] >= 0) {
7694 close(pip[0]);
7700 if (pip[1] > 1) {
7701 dup2(pip[1], 1);
7702 close(pip[1]);
7709 prevfd = pip[0];
7710 close(pip[1]);