/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/valgrind/include/ |
D | pub_tool_libcfile.h | 87 extern SysRes VG_(dup) ( Int oldfd ); 88 extern SysRes VG_(dup2) ( Int oldfd, Int newfd );
|
/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/ltp/include/ |
D | tst_safe_macros.h | 54 int oldfd) in safe_dup() argument 58 rval = dup(oldfd); in safe_dup() 61 "dup(%i) failed", oldfd); in safe_dup() 66 #define SAFE_DUP(oldfd) \ argument 67 safe_dup(__FILE__, __LINE__, (oldfd))
|
/external/valgrind/coregrind/ |
D | m_libcfile.c | 55 Int VG_(safe_fd)(Int oldfd) in VG_() 61 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); in VG_() 63 VG_(close)(oldfd); in VG_() 470 SysRes VG_(dup) ( Int oldfd ) in VG_() 473 return VG_(do_syscall1)(__NR_dup, oldfd); in VG_() 475 return VG_(do_syscall3)(__NR_fcntl, oldfd, F_DUPFD, 0); in VG_() 481 SysRes VG_(dup2) ( Int oldfd, Int newfd ) in VG_() 488 if (oldfd == newfd) { in VG_() 489 if (VG_(fcntl)(oldfd, VKI_F_GETFL, 0) == -1) in VG_() 493 return VG_(do_syscall3)(__NR_dup3, oldfd, newfd, 0); in VG_() [all …]
|
D | pub_core_libcfile.h | 43 extern Int VG_(safe_fd) ( Int 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()
|
D | sanitizer_linux.cc | 298 uptr internal_dup2(int oldfd, int newfd) { in internal_dup2() argument 300 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2() 302 return internal_syscall(SYSCALL(dup2), oldfd, newfd); in internal_dup2()
|
D | sanitizer_common_syscalls.inc | 1255 PRE_SYSCALL(dup2)(long oldfd, long newfd) {} 1257 POST_SYSCALL(dup2)(long res, long oldfd, long newfd) {} 1259 PRE_SYSCALL(dup3)(long oldfd, long newfd, long flags) {} 1261 POST_SYSCALL(dup3)(long res, long oldfd, long newfd, long flags) {}
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 731 #define __sanitizer_syscall_pre_dup2(oldfd, newfd) \ argument 732 __sanitizer_syscall_pre_impl_dup2((long)(oldfd), (long)(newfd)) 733 #define __sanitizer_syscall_post_dup2(res, oldfd, newfd) \ argument 734 __sanitizer_syscall_post_impl_dup2(res, (long)(oldfd), (long)(newfd)) 735 #define __sanitizer_syscall_pre_dup3(oldfd, newfd, flags) \ argument 736 __sanitizer_syscall_pre_impl_dup3((long)(oldfd), (long)(newfd), (long)(flags)) 737 #define __sanitizer_syscall_post_dup3(res, oldfd, newfd, flags) \ argument 738 __sanitizer_syscall_post_impl_dup3(res, (long)(oldfd), (long)(newfd), \ 2415 void __sanitizer_syscall_pre_impl_dup2(long oldfd, long newfd); 2416 void __sanitizer_syscall_post_impl_dup2(long res, long oldfd, long newfd); [all …]
|
/external/python/cpython2/Modules/ |
D | posixmodule.c | 4525 int oldfd, tgtfd; in popen() local 4551 oldfd = dup(tgtfd); in popen() 4559 dup2(oldfd, tgtfd); in popen() 4560 close(oldfd); in popen()
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-generic.c | 3222 PRE_REG_READ1(long, "dup", unsigned int, oldfd); in PRE() 3240 PRE_REG_READ2(long, "dup2", unsigned int, oldfd, unsigned int, newfd); in PRE()
|
D | syswrap-linux.c | 3368 PRE_REG_READ3(long, "dup3", unsigned int, oldfd, unsigned int, newfd, int, flags); in PRE()
|
/external/valgrind/memcheck/tests/x86-linux/ |
D | scalar.stderr.exp | 556 Syscall param dup(oldfd) contains uninitialised byte(s) 762 Syscall param dup2(oldfd) contains uninitialised byte(s)
|
/external/valgrind/memcheck/tests/arm64-linux/ |
D | scalar.stderr.exp | 168 Syscall param dup(oldfd) contains uninitialised byte(s)
|