Home
last modified time | relevance | path

Searched refs:dup3 (Results 1 - 25 of 30) 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()
/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
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiExternalMemoryTests.cpp1827 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testSemaphoreFdDup3()
1830 log << TestLog::Message << "dup3() failed: '" << strerror(errno) << "'" << TestLog::EndMessage; in testSemaphoreFdDup3()
1832 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup3() for fences fd"); in testSemaphoreFdDup3()
1856 TCU_THROW(NotSupportedError, "Platform doesn't support dup3()"); in testSemaphoreFdDup3()
2905 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testFenceFdDup3()
2908 log << TestLog::Message << "dup3() failed: '" << strerror(errno) << "'" << TestLog::EndMessage; in testFenceFdDup3()
2910 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup3() for fences fd"); in testFenceFdDup3()
2934 TCU_THROW(NotSupportedError, "Platform doesn't support dup3()"); in testFenceFdDup3()
3754 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testMemoryFdDup3()
3757 log << TestLog::Message << "dup3() faile in testMemoryFdDup3()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiExternalMemoryTests.cpp1812 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testSemaphoreFdDup3()
1815 log << TestLog::Message << "dup3() failed: '" << strerror(errno) << "'" << TestLog::EndMessage; in testSemaphoreFdDup3()
1817 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup3() for fences fd"); in testSemaphoreFdDup3()
1841 TCU_THROW(NotSupportedError, "Platform doesn't support dup3()"); in testSemaphoreFdDup3()
2887 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testFenceFdDup3()
2890 log << TestLog::Message << "dup3() failed: '" << strerror(errno) << "'" << TestLog::EndMessage; in testFenceFdDup3()
2892 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup3() for fences fd"); in testFenceFdDup3()
2916 TCU_THROW(NotSupportedError, "Platform doesn't support dup3()"); in testFenceFdDup3()
3635 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testMemoryFdDup3()
3638 log << TestLog::Message << "dup3() faile in testMemoryFdDup3()
[all...]
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/
H A Dmod.rs2698 pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int; in dup3() functions
/third_party/rust/crates/libc/src/unix/solarish/
H A Dmod.rs3049 pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int; in dup3() functions

Completed in 56 milliseconds

12