Lines Matching refs:error_fd
91 int error_fd; // duplication of fileno(error) (below)
136 context->error_fd = -1;
172 if (context->output_fd == context->error_fd) {
203 context->error_fd = -1;
205 if (context->output && (context->error_fd == fileno(context->output))) {
206 context->error_fd = -1;
208 if (context->error_fd == context->output_fd) {
209 context->error_fd = -1;
214 if (context->error_fd == fileno(context->error)) {
215 context->error_fd = -1;
224 if (context->error_fd >= 0) {
225 if ((context->error_fd != fileno(stdout)) &&
226 (context->error_fd != fileno(stderr))) {
227 if (context->fds[1] == context->error_fd) context->fds[1] = -1;
228 close(context->error_fd);
230 context->error_fd = -1;
291 context->error_fd = context->output_fd;
794 if (context->error_fd >= 0) { // Is an error file descriptor supplied?
795 if (context->error_fd == context->output_fd) {
798 close(context->error_fd);
799 context->error_fd = -1;
801 context->error = fdopen(context->error_fd, "web");
805 "Failed to fdopen(error_fd=%d) %s\n", context->error_fd,
833 context->error_fd = -1;
841 if ((context->error_fd < 0) && context->error) {
842 context->error_fd = fileno(context->error);
1295 context->error_fd = fileno(fp);
1680 if (context->error_fd == context->fds[1]) {
1702 context->error_fd = error;