Home
last modified time | relevance | path

Searched refs:dup2 (Results 1 – 19 of 19) sorted by relevance

/tools/lib/subcmd/
Drun-command.c25 dup2(fd, to); in dup_devnull()
86 dup2(fdin[0], 0); in start_command()
89 dup2(cmd->in, 0); in start_command()
96 dup2(fderr[1], 2); in start_command()
103 dup2(2, 1); in start_command()
105 dup2(fdout[1], 1); in start_command()
108 dup2(cmd->out, 1); in start_command()
Dpager.c105 dup2(pager_process.in, 1); in setup_pager()
107 dup2(pager_process.in, 2); in setup_pager()
/tools/testing/selftests/wireguard/qemu/
Dinit.c229 dup2(fd, 0); in ensure_console()
230 dup2(fd, 1); in ensure_console()
231 dup2(fd, 2); in ensure_console()
/tools/testing/selftests/openat2/
Dhelpers.h76 #define E_dup2(...) E_func(dup2, __VA_ARGS__)
/tools/perf/bench/
Dinject-buildid.c302 dup2(data->input_pipe[0], STDIN_FILENO); in setup_injection()
304 dup2(data->output_pipe[1], STDOUT_FILENO); in setup_injection()
311 dup2(dev_null_fd, STDERR_FILENO); in setup_injection()
/tools/testing/selftests/kcmp/
Dkcmp_test.c69 fddup = dup2(pipefd[1], duped_num); in main()
/tools/testing/selftests/proc/
Dfd-001-lookup.c158 if (dup2(fd, target_fd) == target_fd) in main()
Dproc-pid-vm.c278 if (dup2(pipefd[1], 0) != 0) { in main()
/tools/testing/selftests/arm64/pauth/
Dpac.c131 dup2(new_stdin[0], STDIN_FILENO); in exec_sign_all()
137 dup2(new_stdout[1], STDOUT_FILENO); in exec_sign_all()
/tools/testing/selftests/filesystems/
Ddevpts_pts.c20 ret = dup2(duplicate, original); in terminal_dup2()
/tools/perf/tests/
Dbuiltin-test.c408 dup2(nullfd, STDOUT_FILENO); in run_test()
409 dup2(STDOUT_FILENO, STDERR_FILENO); in run_test()
/tools/testing/selftests/resctrl/
Dresctrlfs.c659 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl44 33 common dup2 sys_dup2
/tools/perf/arch/s390/entry/syscalls/
Dsyscall.tbl62 63 common dup2 sys_dup2 sys_dup2
/tools/perf/arch/powerpc/entry/syscalls/
Dsyscall.tbl86 63 common dup2 sys_dup2
/tools/include/nolibc/
Dnolibc.h1867 int dup2(int old, int new) in dup2() function
/tools/perf/util/
Devlist.c1353 dup2(2, 1); in perf_evlist__prepare_workload()
/tools/perf/
Dbuiltin-script.c3703 dup2(live_pipe[1], 1); in cmd_script()
3738 dup2(live_pipe[0], 0); in cmd_script()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3849 if (dup2(listener, 200) != 200) in TEST()
3905 if (dup2(listener, 200) != 200) in TEST()