Home
last modified time | relevance | path

Searched refs:dup3 (Results 1 – 15 of 15) sorted by relevance

/freebsd/tests/sys/file/
H A Ddup_test.c311 if ((fd2 = dup3(fd1, fd1 + 1, O_CLOEXEC)) < 0) in main()
336 if ((fd2 = dup3(fd1, fd1 + 1, 0)) < 0) in main()
362 if (dup3(fd1, fd1, O_CLOEXEC) != -1) in main()
369 if (dup3(fd1, fd1, 0) != -1) in main()
378 if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 0) in main()
405 if ((fd2 = dup3(fd1, fd1 + 1, O_CLOFORK)) < 0) in main()
430 if ((fd2 = dup3(fd1, fd1 + 1, 0)) < 0) in main()
456 if (dup3(fd1, fd1, O_CLOFORK) != -1) in main()
463 if (dup3(fd1, fd1, 0) != -1) in main()
472 if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOFORK)) >= 0) in main()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_dup.c82 fd = dup3(fd1, fd2, O_CLOEXEC); in check_mode()
219 ATF_REQUIRE(dup3(fd, fd, O_CLOEXEC) == -1); in ATF_TC_BODY()
221 ATF_REQUIRE(dup3(fd, fd, O_CLOEXEC) != -1); in ATF_TC_BODY()
226 ATF_REQUIRE_ERRNO(EINVAL, dup3(-1, -1, O_CLOEXEC) == -1); in ATF_TC_BODY()
227 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); in ATF_TC_BODY()
229 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, -1, O_CLOEXEC) == -1); in ATF_TC_BODY()
233 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); in ATF_TC_BODY()
236 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1); in ATF_TC_BODY()
239 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1); in ATF_TC_BODY()
258 ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO, in ATF_TC_BODY()
/freebsd/lib/libc/gen/
H A Ddup3.c60 __weak_reference(__dup3, dup3);
H A DMakefile.inc44 dup3.c \
228 dup3.3 \
H A DSymbol.map365 dup3;
/freebsd/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/
H A Doclo_errors.c64 int fd = dup3(STDERR_FILENO, 23, flags); in oclo_dup3()
H A Doclo.c398 dup = dup3(fd, fd + 1, dflags); in oclo_dup_common()
/freebsd/include/
H A Dunistd.h508 int dup3(int, int, int);
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp1735 TSAN_INTERCEPTOR(int, dup3, int oldfd, int newfd, int flags) { in TSAN_INTERCEPTOR() argument
1736 SCOPED_TSAN_INTERCEPTOR(dup3, oldfd, newfd, flags); in TSAN_INTERCEPTOR()
1737 int newfd2 = REAL(dup3)(oldfd, newfd, flags); in TSAN_INTERCEPTOR()
3002 TSAN_INTERCEPT(dup3); in InitializeInterceptors()
/freebsd/contrib/capsicum-test/
H A Dcapmode.cc126 EXPECT_OK(dup3(fd_file_, fd_dup, 0)); in FORK_TEST_F()
H A Dcapability-fd.cc241 EXPECT_OK(dup3(cap_fd, cap_dup, 0)); in FORK_TEST()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp527 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2()
H A Dsanitizer_common_syscalls.inc1369 PRE_SYSCALL(dup3)(long oldfd, long newfd, long flags) {}
1371 POST_SYSCALL(dup3)(long res, long oldfd, long newfd, long flags) {}
H A Dsanitizer_syscalls_netbsd.inc3394 PRE_SYSCALL(dup3)(long long from_, long long to_, long long flags_) {
3397 POST_SYSCALL(dup3)
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Dlibc_ubuntu1404_abilist.txt1580 fun:dup3=uninstrumented