Searched refs:dup2 (Results 1 – 19 of 19) sorted by relevance
/tools/lib/subcmd/ |
D | run-command.c | 25 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()
|
D | pager.c | 105 dup2(pager_process.in, 1); in setup_pager() 107 dup2(pager_process.in, 2); in setup_pager()
|
/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 229 dup2(fd, 0); in ensure_console() 230 dup2(fd, 1); in ensure_console() 231 dup2(fd, 2); in ensure_console()
|
/tools/testing/selftests/openat2/ |
D | helpers.h | 76 #define E_dup2(...) E_func(dup2, __VA_ARGS__)
|
/tools/perf/bench/ |
D | inject-buildid.c | 302 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/ |
D | kcmp_test.c | 69 fddup = dup2(pipefd[1], duped_num); in main()
|
/tools/testing/selftests/proc/ |
D | fd-001-lookup.c | 158 if (dup2(fd, target_fd) == target_fd) in main()
|
D | proc-pid-vm.c | 278 if (dup2(pipefd[1], 0) != 0) { in main()
|
/tools/testing/selftests/arm64/pauth/ |
D | pac.c | 131 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/ |
D | devpts_pts.c | 20 ret = dup2(duplicate, original); in terminal_dup2()
|
/tools/perf/tests/ |
D | builtin-test.c | 408 dup2(nullfd, STDOUT_FILENO); in run_test() 409 dup2(STDOUT_FILENO, STDERR_FILENO); in run_test()
|
/tools/testing/selftests/resctrl/ |
D | resctrlfs.c | 659 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
|
/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 44 33 common dup2 sys_dup2
|
/tools/perf/arch/s390/entry/syscalls/ |
D | syscall.tbl | 62 63 common dup2 sys_dup2 sys_dup2
|
/tools/perf/arch/powerpc/entry/syscalls/ |
D | syscall.tbl | 86 63 common dup2 sys_dup2
|
/tools/include/nolibc/ |
D | nolibc.h | 1867 int dup2(int old, int new) in dup2() function
|
/tools/perf/util/ |
D | evlist.c | 1353 dup2(2, 1); in perf_evlist__prepare_workload()
|
/tools/perf/ |
D | builtin-script.c | 3703 dup2(live_pipe[1], 1); in cmd_script() 3738 dup2(live_pipe[0], 0); in cmd_script()
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3849 if (dup2(listener, 200) != 200) in TEST() 3905 if (dup2(listener, 200) != 200) in TEST()
|