Lines Matching refs:fd_out
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)
165 dup2(fd_out[1], STDOUT_FILENO) < 0 ||
171 i_close_fd(&fd_out[0]);
172 i_close_fd(&fd_out[1]);
183 i_close_fd(&fd_out[1]);
185 ctx->fd_in = fd_out[0];
186 ctx->fd_out = fd_in[1];
192 if (write_full(ctx->fd_out, prefix, strlen(prefix)) < 0)
508 fd_set_nonblock(ctx->fd_out, TRUE);
510 ctx->output = o_stream_create_fd(ctx->fd_out, (size_t)-1);
512 i_assert(ctx->fd_in == -1 && ctx->fd_out == -1);
514 ctx->fd_out = o_stream_get_fd(ctx->output);
734 if (ctx->fd_out != ctx->fd_in)
735 i_close_fd(&ctx->fd_out);
940 ctx->fd_out = -1;
1178 ctx->fd_in = ctx->fd_out = -1;
1267 ctx->fd_out = STDOUT_FILENO;