/external/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 50 int *oldfd; member 76 TEST(ltp_syscall(__NR_dup3, *(test_cases[i].oldfd), in main()
|
/external/syzkaller/sys/fuchsia/ |
D | posix.txt | 34 dup(oldfd fd) fd 35 dup2(oldfd fd, newfd fd) fd 36 dup3(oldfd fd, newfd fd, flags flags[dup_flags]) fd 59 linkat(oldfd fd, old ptr[in, filename], newfd fd, new ptr[in, filename], flags flags[linkat_flags]) 67 renameat(oldfd fd, old ptr[in, filename], newfd fd, new ptr[in, filename])
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_fd.cc | 225 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write) { in FdDup() argument 226 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd); in FdDup() 227 if (bogusfd(oldfd) || bogusfd(newfd)) in FdDup() 230 FdDesc *od = fddesc(thr, pc, oldfd); in FdDup()
|
D | tsan_interceptors.cc | 1443 TSAN_INTERCEPTOR(int, dup, int oldfd) { in TSAN_INTERCEPTOR() argument 1444 SCOPED_TSAN_INTERCEPTOR(dup, oldfd); in TSAN_INTERCEPTOR() 1445 int newfd = REAL(dup)(oldfd); in TSAN_INTERCEPTOR() 1446 if (oldfd >= 0 && newfd >= 0 && newfd != oldfd) in TSAN_INTERCEPTOR() 1447 FdDup(thr, pc, oldfd, newfd, true); in TSAN_INTERCEPTOR() 1451 TSAN_INTERCEPTOR(int, dup2, int oldfd, int newfd) { in TSAN_INTERCEPTOR() argument 1452 SCOPED_TSAN_INTERCEPTOR(dup2, oldfd, newfd); in TSAN_INTERCEPTOR() 1453 int newfd2 = REAL(dup2)(oldfd, newfd); in TSAN_INTERCEPTOR() 1454 if (oldfd >= 0 && newfd2 >= 0 && newfd2 != oldfd) in TSAN_INTERCEPTOR() 1455 FdDup(thr, pc, oldfd, newfd2, false); in TSAN_INTERCEPTOR() [all …]
|
D | tsan_fd.h | 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | syscall_linux_arm64.go | 190 func Dup2(oldfd int, newfd int) (err error) { 191 return Dup3(oldfd, newfd, 0)
|
D | zsyscall_linux_s390x.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_386.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1512 func Dup2(oldfd int, newfd int) (err error) { 1513 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_mipsle.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_mips64le.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_sparc64.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1519 func Dup2(oldfd int, newfd int) (err error) { 1520 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_arm.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1681 func Dup2(oldfd int, newfd int) (err error) { 1682 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_mips64.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_amd64.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_mips.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1492 func Dup2(oldfd int, newfd int) (err error) { 1493 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_ppc64.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1477 func Dup2(oldfd int, newfd int) (err error) { 1478 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
D | zsyscall_linux_ppc64le.go | 451 func Dup(oldfd int) (fd int, err error) { 452 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 462 func Dup3(oldfd int, newfd int, flags int) (err error) { 463 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 1477 func Dup2(oldfd int, newfd int) (err error) { 1478 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
/external/syzkaller/sys/netbsd/ |
D | fs.txt | 28 dup(oldfd fd) fd 29 dup2(oldfd fd, newfd fd) fd
|
D | sys.txt | 72 linkat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename], flags flags[linkat… 80 renameat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename])
|
/external/syzkaller/sys/freebsd/ |
D | posix_fs.txt | 28 dup(oldfd fd) fd 29 dup2(oldfd fd, newfd fd) fd
|
D | sys.txt | 80 linkat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename], flags flags[linkat… 88 renameat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename])
|
/external/ltp/include/ |
D | tst_safe_macros.h | 59 int oldfd) in safe_dup() argument 63 rval = dup(oldfd); in safe_dup() 66 "dup(%i) failed", oldfd); in safe_dup() 71 #define SAFE_DUP(oldfd) \ argument 72 safe_dup(__FILE__, __LINE__, (oldfd))
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat01.c | 91 int *oldfd; member 244 (*desc->oldfd, desc->oldfn, *desc->newfd, desc->newfn, in mylinkat_test()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.h | 48 uptr internal_dup2(int oldfd, int newfd);
|
D | sanitizer_mac.cc | 144 uptr internal_dup2(int oldfd, int newfd) { in internal_dup2() argument 145 return dup2(oldfd, newfd); in internal_dup2()
|