Lines Matching refs:fd_in
81 int fd_in, fd_out, fd_err;
150 int fd_in[2], fd_out[2], fd_err[2];
154 if (pipe(fd_in) < 0 || pipe(fd_out) < 0 || pipe(fd_err) < 0)
164 if (dup2(fd_in[0], STDIN_FILENO) < 0 ||
169 i_close_fd(&fd_in[0]);
170 i_close_fd(&fd_in[1]);
182 i_close_fd(&fd_in[0]);
185 ctx->fd_in = fd_out[0];
186 ctx->fd_out = fd_in[1];
507 fd_set_nonblock(ctx->fd_in, TRUE);
509 ctx->input = i_stream_create_fd(ctx->fd_in, (size_t)-1);
512 i_assert(ctx->fd_in == -1 && ctx->fd_out == -1);
513 ctx->fd_in = i_stream_get_fd(ctx->input);
733 if (ctx->fd_in != -1) {
734 if (ctx->fd_out != ctx->fd_in)
736 i_close_fd(&ctx->fd_in);
939 ctx->fd_in = -1;
1178 ctx->fd_in = ctx->fd_out = -1;
1266 ctx->fd_in = STDIN_FILENO;