Home
last modified time | relevance | path

Searched refs:dup3 (Results 1 - 25 of 35) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Ddup3.c30 int ret = dup3(fd, fileno(stderr), O_CLOEXEC); in dup3_0100()
44 int ret = dup3(fd, fileno(stderr), O_CLOEXEC); in dup3_0200()
58 int ret = dup3(fd, newfd, O_CLOEXEC); in dup3_0300()
/third_party/rust/crates/rustix/src/io/
H A Ddup.rs44 /// set `O_CLOEXEC`, use [`dup3`] with [`DupFlags::CLOEXEC`] on platforms which
63 /// `dup3(fd, new, flags)`—Changes the [file description] of a file
66 /// `dup3` is the same as [`dup2`] but adds an additional flags operand, and it
75 /// [Linux]: https://man7.org/linux/man-pages/man2/dup3.2.html
78 pub fn dup3<Fd: AsFd>(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3() functions
79 backend::io::syscalls::dup3(fd.as_fd(), new, flags) in dup3()
H A Dmod.rs34 pub use dup::{dup, dup2, dup3, DupFlags};
/third_party/musl/src/unistd/
H A Ddup3.c26 weak_alias(__dup3, dup3);
/third_party/ltp/testcases/kernel/syscalls/dup3/
H A Ddup3_02.c41 TST_EXP_FAIL2(dup3(*tc->oldfd, *tc->newfd, tc->flags), EINVAL, in run()
42 "dup3(%d, %d, %d)", *tc->oldfd, *tc->newfd, tc->flags); in run()
H A Ddup3_01.c12 * Testcase to check whether dup3() supports O_CLOEXEC flag.
29 {0, "dup3(1, 4, 0)"},
30 {O_CLOEXEC, "dup3(1, 4, O_CLOEXEC)"},
43 TST_EXP_FD_SILENT(dup3(1, 4, tc->coe_flag), "dup3(1, 4, %d)", tc->coe_flag); in run()
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dsyscalls.rs432 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> {
434 ret_discarded_fd(c::dup3(
450 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, _flags: DupFlags) -> io::Result<()> {
451 // Android 5.0 has `dup3`, but libc doesn't have bindings. Emulate it
453 // `dup2` and `dup3` when the file descriptors are equal because we
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Dsyscalls.rs408 // `dup3` when the file descriptors are equal because we have an
410 dup3(fd, new, DupFlags::empty())
420 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> {
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h41 int dup3(int, int, int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h39 int dup3(int, int, int);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h45 int dup3(int, int, int);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h41 int dup3(int, int, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h39 int dup3(int, int, int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h45 int dup3(int, int, int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h39 int dup3(int, int, int);
/third_party/musl/include/
H A Dunistd.h55 int dup3(int, int, int);
/third_party/toybox/toys/pending/
H A Dstrace.c480 SC(dup3, "ff|open|"); in print_enter()
/kernel/linux/linux-5.10/fs/
H A Dfile.c1230 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3()
/kernel/linux/linux-6.6/tools/include/nolibc/
H A Dsys.h245 * int dup3(int old, int new, int flags);
256 int dup3(int old, int new, int flags) in dup3() function
/kernel/linux/linux-6.6/tools/testing/selftests/nolibc/
H A Dnolibc-test.c878 CASE_TEST(dup3_0); tmp = dup3(0, 100, 0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall()
879 CASE_TEST(dup3_m1); tmp = dup3(-1, 100, 0); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != -1) close(tmp); break; in run_syscall()
/kernel/linux/linux-6.6/fs/
H A Dfile.c1266 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3()
/third_party/node/deps/uv/src/unix/
H A Dcore.c1056 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec()
/third_party/libuv/src/unix/
H A Dcore.c1116 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec()
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/
H A Dmod.rs1796 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3() functions
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
H A Dmod.rs1758 pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int; in dup3() functions

Completed in 39 milliseconds

12