/linux-6.1.9/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()
|
/linux-6.1.9/arch/um/drivers/ |
D | harddog_user.c | 21 dup2(data->stdin_fd, 0); in pre_exec() 22 dup2(data->stdout_fd, 1); in pre_exec() 23 dup2(data->stdout_fd, 2); in pre_exec()
|
D | port_user.c | 159 dup2(data->sock_fd, 0); in port_pre_exec() 160 dup2(data->sock_fd, 1); in port_pre_exec() 161 dup2(data->sock_fd, 2); in port_pre_exec() 163 dup2(data->pipe_fd, 3); in port_pre_exec()
|
D | slirp_user.c | 32 dup2(data->stdin_fd, 0); in slirp_pre_exec() 34 dup2(data->stdout_fd, 1); in slirp_pre_exec()
|
D | slip_user.c | 68 dup2(data->stdin_fd, 0); in slip_pre_exec() 69 dup2(data->stdout_fd, 1); in slip_pre_exec()
|
D | net_user.c | 177 dup2(data->stdout_fd, 1); in change_pre_exec()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | test_bprm_opts.c | 41 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec() 42 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()
|
D | test_local_storage.c | 36 dup2(null_fd, STDOUT_FILENO); in run_self_unlink() 37 dup2(null_fd, STDERR_FILENO); in run_self_unlink()
|
/linux-6.1.9/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 224 dup2(fd, 0); in ensure_console() 225 dup2(fd, 1); in ensure_console() 226 dup2(fd, 2); in ensure_console()
|
/linux-6.1.9/tools/testing/selftests/core/ |
D | close_range_test.c | 399 fd2 = dup2(fd1, 1000); in TEST() 423 fd3 = dup2(fd1, 42); in TEST() 453 fd3 = dup2(fd1, 42); in TEST() 491 fd2 = dup2(fd1, 1000); in TEST() 518 fd3 = dup2(fd1, 42); in TEST() 554 fd3 = dup2(fd1, 42); in TEST()
|
/linux-6.1.9/tools/testing/selftests/nolibc/ |
D | nolibc-test.c | 492 CASE_TEST(dup2_0); tmp = dup2(0, 100); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 493 …CASE_TEST(dup2_m1); tmp = dup2(-1, 100); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != -1)… in run_syscall() 605 dup2(fd, 0); in prepare() 607 dup2(fd, 1); in prepare() 609 dup2(fd, 2); in prepare()
|
/linux-6.1.9/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()
|
/linux-6.1.9/tools/testing/selftests/openat2/ |
D | helpers.h | 76 #define E_dup2(...) E_func(dup2, __VA_ARGS__)
|
/linux-6.1.9/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()
|
/linux-6.1.9/arch/um/os-Linux/ |
D | user_syms.c | 63 EXPORT_SYMBOL_PROTO(dup2);
|
/linux-6.1.9/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 69 fddup = dup2(pipefd[1], duped_num); in main()
|
/linux-6.1.9/tools/perf/tests/ |
D | builtin-test.c | 210 dup2(nullfd, STDOUT_FILENO); in run_test() 211 dup2(STDOUT_FILENO, STDERR_FILENO); in run_test()
|
/linux-6.1.9/tools/testing/selftests/proc/ |
D | fd-001-lookup.c | 158 if (dup2(fd, target_fd) == target_fd) in main()
|
/linux-6.1.9/tools/perf/ |
D | builtin-daemon.c | 360 dup2(fd, 0); in daemon_session__run() 369 dup2(fd, 1); in daemon_session__run() 370 dup2(fd, 2); in daemon_session__run() 1217 dup2(fd, 1); in go_background() 1218 dup2(fd, 2); in go_background()
|
/linux-6.1.9/tools/testing/selftests/perf_events/ |
D | remove_on_exec.c | 141 ASSERT_NE(dup2(pipefd[1], STDOUT_FILENO), -1); in TEST_F()
|
/linux-6.1.9/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 58 dup2(data->stdout_fd, 1); in tuntap_pre_exec()
|
D | ethertap_user.c | 86 dup2(data->control_remote, 1); in etap_pre_exec()
|
/linux-6.1.9/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 20 ret = dup2(duplicate, original); in terminal_dup2()
|
/linux-6.1.9/fs/hostfs/ |
D | hostfs_user.c | 171 return dup2(oldfd, fd); in replace_file()
|