Lines Matching refs:error_fd
91 int error_fd; // duplication of fileno(error) (below) member
136 context->error_fd = -1; in create_android_logcat()
172 if (context->output_fd == context->error_fd) { in close_output()
203 context->error_fd = -1; in close_error()
205 if (context->output && (context->error_fd == fileno(context->output))) { in close_error()
206 context->error_fd = -1; in close_error()
208 if (context->error_fd == context->output_fd) { in close_error()
209 context->error_fd = -1; in close_error()
214 if (context->error_fd == fileno(context->error)) { in close_error()
215 context->error_fd = -1; in close_error()
224 if (context->error_fd >= 0) { in close_error()
225 if ((context->error_fd != fileno(stdout)) && in close_error()
226 (context->error_fd != fileno(stderr))) { in close_error()
227 if (context->fds[1] == context->error_fd) context->fds[1] = -1; in close_error()
228 close(context->error_fd); in close_error()
230 context->error_fd = -1; in close_error()
291 context->error_fd = context->output_fd; in rotateLogs()
793 if (context->error_fd >= 0) { // Is an error file descriptor supplied? in __logcat()
794 if (context->error_fd == context->output_fd) { in __logcat()
797 close(context->error_fd); in __logcat()
798 context->error_fd = -1; in __logcat()
800 context->error = fdopen(context->error_fd, "web"); in __logcat()
804 "Failed to fdopen(error_fd=%d) %s\n", context->error_fd, in __logcat()
832 context->error_fd = -1; in __logcat()
840 if ((context->error_fd < 0) && context->error) { in __logcat()
841 context->error_fd = fileno(context->error); in __logcat()
1294 context->error_fd = fileno(fp); in __logcat()
1679 if (context->error_fd == context->fds[1]) { in __logcat()
1701 context->error_fd = error; in android_logcat_run_command()