Home
last modified time | relevance | path

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

/test/xts/hats/kernel/syscalls/fileio/dup3/
H A DDup3ApiTest.cpp54 * @tc.desc : dup3 file fd success.
69 fd = dup3(oldFd, newFd, 0); in HWTEST_F()
83 * @tc.desc : dup3 force set the close-on-exec flag to the new fd success.
99 fd = dup3(oldFd, newFd, O_CLOEXEC); in HWTEST_F()
115 * @tc.desc : dup3 file invalid fd failed.
127 fd = dup3(oldFd, 2, 0); in HWTEST_F()
130 fd = dup3(oldFd, -3, 0); in HWTEST_F()
141 * @tc.desc : dup3 file equal oldfd and newfd failed.
151 fd = dup3(2, 2, 0); in HWTEST_F()
/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()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dunistdndk.cpp1911 if (dup3(fileDescribe, TEST_DUP, O_CLOEXEC) != -1) { in Dup3()
2214 {"dup3", nullptr, Dup3, nullptr, nullptr, nullptr, napi_default, nullptr}, in Init()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.c3683 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd()

Completed in 25 milliseconds