Home
last modified time | relevance | path

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

123

/linux-6.12.1/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()
/linux-6.12.1/arch/um/drivers/
Dport_user.c159 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()
Dharddog_user.c22 dup2(data->stdin_fd, 0); in pre_exec()
23 dup2(data->stdout_fd, 1); in pre_exec()
24 dup2(data->stdout_fd, 2); in pre_exec()
Dslirp_user.c32 dup2(data->stdin_fd, 0); in slirp_pre_exec()
34 dup2(data->stdout_fd, 1); in slirp_pre_exec()
Dslip_user.c68 dup2(data->stdin_fd, 0); in slip_pre_exec()
69 dup2(data->stdout_fd, 1); in slip_pre_exec()
Dnet_user.c177 dup2(data->stdout_fd, 1); in change_pre_exec()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtest_bprm_opts.c41 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()
42 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()
Dtest_local_storage.c34 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()
35 dup2(null_fd, STDERR_FILENO); in run_self_unlink()
/linux-6.12.1/tools/testing/selftests/core/
Dclose_range_test.c394 fd2 = dup2(fd1, 1000); in TEST()
425 fd3 = dup2(fd1, 42); in TEST()
464 fd3 = dup2(fd1, 42); in TEST()
521 fd2 = dup2(fd1, 1000); in TEST()
548 fd3 = dup2(fd1, 42); in TEST()
584 fd3 = dup2(fd1, 42); in TEST()
607 EXPECT_GE(dup2(0, i), 0); in TEST()
Dunshare_test.c60 EXPECT_GE(dup2(2, nr_open + 64), 0) { in TEST()
/linux-6.12.1/tools/testing/selftests/wireguard/qemu/
Dinit.c224 dup2(fd, 0); in ensure_console()
225 dup2(fd, 1); in ensure_console()
226 dup2(fd, 2); in ensure_console()
/linux-6.12.1/tools/perf/bench/
Dinject-buildid.c303 dup2(data->input_pipe[0], STDIN_FILENO); in setup_injection()
305 dup2(data->output_pipe[1], STDOUT_FILENO); in setup_injection()
312 dup2(dev_null_fd, STDERR_FILENO); in setup_injection()
/linux-6.12.1/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()
/linux-6.12.1/tools/testing/selftests/openat2/
Dhelpers.h76 #define E_dup2(...) E_func(dup2, __VA_ARGS__)
/linux-6.12.1/scripts/clang-tools/
Drun-clang-tools.py95 os.dup2(devnull, sys.stdout.fileno())
/linux-6.12.1/scripts/
Ddiffconfig139 os.dup2(devnull, sys.stdout.fileno())
/linux-6.12.1/tools/testing/selftests/kcmp/
Dkcmp_test.c69 fddup = dup2(pipefd[1], duped_num); in main()
/linux-6.12.1/tools/testing/selftests/proc/
Dfd-001-lookup.c158 if (dup2(fd, target_fd) == target_fd) in main()
/linux-6.12.1/tools/perf/
Dbuiltin-daemon.c361 dup2(fd, 0); in daemon_session__run()
370 dup2(fd, 1); in daemon_session__run()
371 dup2(fd, 2); in daemon_session__run()
1218 dup2(fd, 1); in go_background()
1219 dup2(fd, 2); in go_background()
/linux-6.12.1/tools/testing/selftests/powerpc/dexcr/
Dhashchk_test.c136 if (dup2(pipefd[1], STDOUT_FILENO) == -1) in hashchk_exec_random_key_test()
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dfp-stress.c80 ret = dup2(pipefd[1], 1); in child_start()
90 ret = dup2(startup_pipe[0], 3); in child_start()
/linux-6.12.1/tools/testing/selftests/perf_events/
Dremove_on_exec.c141 ASSERT_NE(dup2(pipefd[1], STDOUT_FILENO), -1); in TEST_F()
/linux-6.12.1/tools/testing/selftests/filesystems/
Ddevpts_pts.c20 ret = dup2(duplicate, original); in terminal_dup2()
/linux-6.12.1/arch/um/os-Linux/drivers/
Dtuntap_user.c58 dup2(data->stdout_fd, 1); in tuntap_pre_exec()

123