• Home
  • Raw
  • Download

Lines Matching refs:output_fd

93     int output_fd;  // duplication of fileno(output) (below)  member
138 context->output_fd = -1; in create_android_logcat()
170 context->output_fd = -1; in close_output()
172 if (context->error && (context->output_fd == fileno(context->error))) { in close_output()
173 context->output_fd = -1; in close_output()
175 if (context->output_fd == context->error_fd) { in close_output()
176 context->output_fd = -1; in close_output()
181 if (context->output_fd == fileno(context->output)) { in close_output()
182 context->output_fd = -1; in close_output()
191 if (context->output_fd >= 0) { in close_output()
192 if (context->output_fd != fileno(stdout)) { in close_output()
193 if (context->fds[1] == context->output_fd) { in close_output()
196 close(context->output_fd); in close_output()
198 context->output_fd = -1; in close_output()
211 if (context->error_fd == context->output_fd) { in close_error()
280 context->output_fd = openLogFile(context->outputFileName); in rotateLogs()
282 if (context->output_fd < 0) { in rotateLogs()
286 context->output = fdopen(context->output_fd, "web"); in rotateLogs()
294 context->error_fd = context->output_fd; in rotateLogs()
303 TEMP_FAILURE_RETRY(write(context->output_fd, buf, size)); in printBinary()
345 context->output_fd, &entry); in processBuffer()
369 if (write(context->output_fd, buf, strlen(buf)) < 0) { in maybePrintStart()
404 context->output_fd = openLogFile(context->outputFileName); in setupOutputAndSchedulingPolicy()
406 if (context->output_fd < 0) { in setupOutputAndSchedulingPolicy()
412 if (fstat(context->output_fd, &statbuf) == -1) { in setupOutputAndSchedulingPolicy()
424 context->output = fdopen(context->output_fd, "web"); in setupOutputAndSchedulingPolicy()
789 if (context->error_fd == context->output_fd) { in __logcat()
805 if (context->output_fd >= 0) { // Is an output file descriptor supplied? in __logcat()
807 close(context->output_fd); in __logcat()
808 context->output_fd = -1; in __logcat()
810 context->output = fdopen(context->output_fd, "web"); in __logcat()
815 context->output_fd, strerror(errno)); in __logcat()
831 if ((context->output_fd < 0) && context->output) { in __logcat()
832 context->output_fd = fileno(context->output); in __logcat()
1259 context->output_fd = fileno(fp); in __logcat()
1478 TEMP_FAILURE_RETRY(write(context->output_fd, in __logcat()
1573 TEMP_FAILURE_RETRY(write(context->output_fd, cp, len)); in __logcat()
1645 if (context->output_fd == context->fds[1]) { in __logcat()
1669 context->output_fd = output; in android_logcat_run_command()