/freebsd/tests/sys/file/ |
H A D | dup_test.c | 311 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 D | t_dup.c | 82 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 D | dup3.c | 60 __weak_reference(__dup3, dup3);
|
H A D | Makefile.inc | 44 dup3.c \ 228 dup3.3 \
|
H A D | Symbol.map | 365 dup3;
|
/freebsd/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
H A D | oclo_errors.c | 64 int fd = dup3(STDERR_FILENO, 23, flags); in oclo_dup3()
|
H A D | oclo.c | 398 dup = dup3(fd, fd + 1, dflags); in oclo_dup_common()
|
/freebsd/include/ |
H A D | unistd.h | 508 int dup3(int, int, int);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_posix.cpp | 1735 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 D | capmode.cc | 126 EXPECT_OK(dup3(fd_file_, fd_dup, 0)); in FORK_TEST_F()
|
H A D | capability-fd.cc | 241 EXPECT_OK(dup3(cap_fd, cap_dup, 0)); in FORK_TEST()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 527 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2()
|
H A D | sanitizer_common_syscalls.inc | 1369 PRE_SYSCALL(dup3)(long oldfd, long newfd, long flags) {} 1371 POST_SYSCALL(dup3)(long res, long oldfd, long newfd, long flags) {}
|
H A D | sanitizer_syscalls_netbsd.inc | 3394 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 D | libc_ubuntu1404_abilist.txt | 1580 fun:dup3=uninstrumented
|