Lines Matching refs:pipe_fd
33 int pipe_fd[2];
48 _ctx.pipe_fd[0] = -1;
49 _ctx.pipe_fd[1] = -1;
69 if ((_ctx.pipe_fd[0] != -1) || (_ctx.pipe_fd[1] != -1))
73 if (pipe(_ctx.pipe_fd) < 0)
87 if (_ctx.pipe_fd[0] < 0)
92 if (close(_ctx.pipe_fd[0]) < 0)
97 _ctx.pipe_fd[0] = -1;
112 if (_ctx.pipe_fd[1] < 0)
117 if (close(_ctx.pipe_fd[1]) < 0)
122 _ctx.pipe_fd[1] = -1;
138 if (_ctx.pipe_fd[0] < 0)
143 n = read(_ctx.pipe_fd[0], &c, sizeof (c));