Lines Matching refs:stdout_file
86 FILE* stdout_file; in process_start() local
115 stdout_file = tmpfile(); in process_start()
116 stdout_fd = fileno(stdout_file); in process_start()
117 if (!stdout_file) { in process_start()
165 p->stdout_file = stdout_file; in process_start()
358 int r = fstat(fileno(p->stdout_file), &buf); in process_output_size()
372 r = fseek(p->stdout_file, 0, SEEK_SET); in process_copy_output()
379 while ((r = fread(buf, 1, sizeof(buf), p->stdout_file)) != 0) in process_copy_output()
382 if (ferror(p->stdout_file)) { in process_copy_output()
397 int r = fseek(p->stdout_file, 0, SEEK_SET); in process_read_last_line()
405 while (fgets(buffer, buffer_len, p->stdout_file) != NULL) { in process_read_last_line()
411 if (ferror(p->stdout_file)) { in process_read_last_line()
444 fclose(p->stdout_file); in process_cleanup()