Home
last modified time | relevance | path

Searched refs:output_fd (Results 1 – 8 of 8) sorted by relevance

/external/OpenCL-CTS/test_conformance/
Drun_conformance.py77 (output_fd, output_name) = tempfile.mkstemp()
80 os.close(output_fd)
89 …subprocess.Popen(current_directory + os.sep + test_dir, stderr=output_fd, stdout=output_fd, shell=…
92 os.close(output_fd)
96 os.close(output_fd)
114 os.close(output_fd)
118 os.fsync(output_fd)
175 os.fsync(output_fd)
190 os.fsync(output_fd)
/external/llvm-project/compiler-rt/lib/fuzzer/afl/
Dafl_driver.cpp156 int output_fd = dup(output_fileno); in dup_and_close_stderr() local
157 if (output_fd <= 0) in dup_and_close_stderr()
159 FILE *new_output_file = fdopen(output_fd, "w"); in dup_and_close_stderr()
164 __sanitizer_set_report_fd(reinterpret_cast<void *>(output_fd)); in dup_and_close_stderr()
/external/adhd/cras/src/plc/
Dcras_plc_test.c86 int input_fd, output_fd, rc; in plc_experiment() local
105 output_fd = open(output_filename, O_CREAT | O_RDWR | O_TRUNC, 0644); in plc_experiment()
106 if (output_fd == -1) { in plc_experiment()
141 rc = write(output_fd, buffer, decoded); in plc_experiment()
/external/rust/crates/libfuzzer-sys/libfuzzer/afl/
Dafl_driver.cpp156 int output_fd = dup(output_fileno); in dup_and_close_stderr() local
157 if (output_fd <= 0) in dup_and_close_stderr()
159 FILE *new_output_file = fdopen(output_fd, "w"); in dup_and_close_stderr()
164 __sanitizer_set_report_fd(reinterpret_cast<void *>(output_fd)); in dup_and_close_stderr()
/external/selinux/policycoreutils/semodule/
Dsemodule.c436 FILE *output_fd = NULL; in main() local
502 output_fd = fopen(output_path, "w"); in main()
503 if (output_fd == NULL) { in main()
509 if (fwrite(data, 1, data_len, output_fd) < data_len) { in main()
515 if (output_fd != NULL) { in main()
516 fclose(output_fd); in main()
/external/perfetto/tools/protoprofile/
Dmain.cc359 base::ScopedFile output_fd = in Main() local
361 if (!output_fd) { in Main()
367 base::WriteAll(output_fd.get(), out.data(), out.size()); in Main()
368 base::FlushFile(output_fd.get()); in Main()
/external/selinux/libsemanage/src/
Ddirect_api.c805 int output_fd[2] = {-1, -1}; in semanage_pipe_data() local
833 retval = pipe(output_fd); in semanage_pipe_data()
855 retval = dup2(output_fd[PIPE_WRITE], STDOUT_FILENO); in semanage_pipe_data()
871 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data()
894 retval = close(output_fd[PIPE_WRITE]); in semanage_pipe_data()
895 output_fd[PIPE_WRITE] = -1; in semanage_pipe_data()
921 …retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); in semanage_pipe_data()
925 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data()
926 output_fd[PIPE_READ] = -1; in semanage_pipe_data()
971 if (output_fd[PIPE_READ] != -1) { in semanage_pipe_data()
[all …]
/external/ltp/testcases/realtime/lib/
Dlibrttest.c662 static void read_and_print(const char *pathname, int output_fd) in read_and_print() argument
684 write_or_complain(output_fd, data, ret); in read_and_print()