Home
last modified time | relevance | path

Searched refs:dup2 (Results 176 - 200 of 215) sorted by relevance

123456789

/kernel/linux/linux-5.10/fs/
H A Dfile.c621 * array. At any such point, we are vulnerable to a dup2() race
625 * It should never happen - if we allow dup2() do it, _really_ bad things
1082 * We need to detect attempts to do dup2() over allocated but still
1235 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2()
/kernel/linux/linux-6.6/tools/include/nolibc/
H A Dsys.h222 * int dup2(int old, int new);
238 int dup2(int old, int new) in dup2() function
/third_party/libuv/src/unix/
H A Dprocess.c359 fd = dup2(use_fd, fd); in uv__process_child_init()
/third_party/node/src/
H A Dnode.cc518 // POSIX.1-2017, which is why dup2(2) is needed. in PlatformInit()
529 err = dup2(null_fd, fd); in PlatformInit()
/third_party/node/test/cctest/
H A Dtest_environment.cc86 dup2(fd_, fileno(stderr)); in ~RedirectStdErr()
/third_party/ntfs-3g/ntfsprogs/
H A Dntfscmp.c244 if (dup2(STDOUT_FILENO, STDERR_FILENO) == -1) { in parse_options()
/third_party/rust/crates/libc/src/windows/
H A Dmod.rs434 pub fn dup2(src: ::c_int, dst: ::c_int) -> ::c_int; in dup2() functions
/third_party/toybox/toys/pending/
H A Dsh.c328 // filehandles: child replaces fd1 with fd2 via dup2() and close() after in run_command()
393 // second entry in this rd[] pair is new fd to dup2() after vfork(), in run_command()
395 // low bit set means don't close(rr[1]) after dup2(rr[1]>>1, rr[0]); in run_command()
443 if (-1 == (fd = xcreate(sss, fd|WARN_ONLY, 777)) || hfd != dup2(fd, hfd)) { in run_command()
H A Dfdisk.c356 if(dup2(fd, dev_fd) != dev_fd) perror_exit("Can't dup2"); in read_mbr()
1433 if(dup2(fd, dev_fd) != dev_fd) perror_exit("Can't dup2"); in move_fd()
/third_party/pulseaudio/src/utils/
H A Dpacat.c1025 if (dup2(fd, mode == PLAYBACK ? STDIN_FILENO : STDOUT_FILENO) < 0) { in main()
1026 pa_log(_("dup2(): %s"), strerror(errno)); in main()
/third_party/python/Lib/test/
H A Dtest_curses.py82 self.addCleanup(os.dup2, dup_fd, stdout_fd)
101 os.dup2(tmp.fileno(), stdout_fd)
H A Dtest_embed.py1799 os.dup2(wfd, stdout_fd)
1804 os.dup2(stdout_fd_copy, stdout_fd)
H A Dtest_os.py1951 # some libc implementations have dup2 return an error in this
1954 os.dup2(new_fd, fd)
2187 @unittest.skipUnless(hasattr(os, 'dup2'), 'test needs os.dup2()')
2189 self.check(os.dup2, 20)
2191 @unittest.skipUnless(hasattr(os, 'dup2'), 'test needs os.dup2()')
2194 "dup2() with negative fds is broken on Emscripten (see gh-102179)"
2208 os.dup2(fd, fd2)
4014 @unittest.skipUnless(hasattr(os, 'dup2'), "nee
[all...]
/third_party/rust/crates/nix/src/
H A Dunistd.rs441 pub fn dup2(oldfd: RawFd, newfd: RawFd) -> Result<RawFd> { in dup2() functions
442 let res = unsafe { libc::dup2(oldfd, newfd) }; in dup2()
450 /// This function behaves similar to `dup2()` but allows for flags to be
462 let fd = dup2(oldfd, newfd)?; in dup3_polyfill()
/third_party/python/Modules/
H A Dposixmodule.c6239 ";A dup2 file_action tuple must have 3 elements", in parse_file_actions()
7503 if (dup2(fd, 0) == -1 || dup2(fd, 1) == -1 || dup2(fd, 2) == -1) { in os_login_tty_impl()
9416 // dup2() is either provided by libc or dup2.c with AC_REPLACE_FUNCS().
9417 // dup2.c provides working dup2() if and only if F_DUPFD is available.
9420 os.dup2 -> int
9439 /* dup2() ca in os_dup2_impl()
[all...]
/kernel/linux/linux-5.10/tools/include/nolibc/
H A Dnolibc.h1867 int dup2(int old, int new) in dup2() function
/kernel/linux/linux-6.6/fs/
H A Dfile.c591 * array. At any such point, we are vulnerable to a dup2() race
595 * It should never happen - if we allow dup2() do it, _really_ bad things
1113 * We need to detect attempts to do dup2() over allocated but still
1271 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2()
/third_party/node/deps/uv/src/unix/
H A Dcore.c1065 r = dup2(oldfd, newfd); /* Never retry. */ in uv__dup2_cloexec()
/third_party/rust/crates/libc/src/solid/
H A Dmod.rs831 pub fn dup2(arg1: c_int, arg2: c_int) -> c_int; in dup2() functions
/third_party/toybox/toys/posix/
H A Dtar.c874 dup2(pipefd[0], 0); in tar_main()
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs359 dup2(writer, 1).unwrap(); in common_test()
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3855 if (dup2(listener, 200) != 200) in TEST()
3911 if (dup2(listener, 200) != 200) in TEST()
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-script.c3703 dup2(live_pipe[1], 1); in cmd_script()
3738 dup2(live_pipe[0], 0); in cmd_script()
/kernel/linux/linux-5.10/tools/perf/util/
H A Devlist.c1353 dup2(2, 1); in perf_evlist__prepare_workload()
/kernel/linux/linux-6.6/tools/perf/util/
H A Devlist.c1435 dup2(2, 1); in evlist__prepare_workload()

Completed in 66 milliseconds

123456789