/external/bison/lib/ |
D | fcntl.c | 50 dupfd (int oldfd, int newfd, int flags) in dupfd() argument 55 HANDLE old_handle = (HANDLE) _get_osfhandle (oldfd); in dupfd() 68 || (mode = setmode (oldfd, O_BINARY)) == -1) in dupfd() 75 setmode (oldfd, mode); in dupfd() 143 result = _gl_register_dup (oldfd, result); in dupfd()
|
D | unistd.in.h | 321 _GL_FUNCDECL_RPL (dup, int, (int oldfd)); 322 _GL_CXXALIAS_RPL (dup, int, (int oldfd)); 324 _GL_CXXALIAS_SYS (dup, int, (int oldfd)); 346 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); 347 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); 350 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); 352 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); 377 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 378 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 380 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); [all …]
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
D | kernel_wrap_win.cc | 68 int _dup(int oldfd) { in _dup() argument 69 return ki_dup(oldfd); in _dup() 72 int _dup2(int oldfd, int newfd) { in _dup2() argument 73 return ki_dup2(oldfd, newfd); in _dup2()
|
D | kernel_wrap.h | 66 int NAME(dup)(int oldfd) NOTHROW; 67 int NAME(dup2)(int oldfd, int newfd) NOTHROW;
|
D | kernel_intercept.h | 72 int ki_dup(int oldfd); 73 int ki_dup2(int oldfd, int newfd);
|
D | kernel_intercept.cc | 156 int ki_dup(int oldfd) { in ki_dup() argument 158 return s_state.kp->dup(oldfd); in ki_dup() 161 int ki_dup2(int oldfd, int newfd) { in ki_dup2() argument 163 return s_state.kp->dup2(oldfd, newfd); in ki_dup2()
|
D | kernel_proxy.cc | 252 int KernelProxy::dup(int oldfd) { in dup() argument 255 Error error = AcquireHandleAndPath(oldfd, &handle, &path); in dup() 263 int KernelProxy::dup2(int oldfd, int newfd) { in dup2() argument 265 if (oldfd == newfd) in dup2() 270 Error error = AcquireHandleAndPath(oldfd, &old_handle, &old_path); in dup2()
|
/external/bison/darwin-lib/ |
D | unistd.h | 633 _GL_FUNCDECL_RPL (dup, int, (int oldfd)); 634 _GL_CXXALIAS_RPL (dup, int, (int oldfd)); 636 _GL_CXXALIAS_SYS (dup, int, (int oldfd)); 658 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); 659 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); 662 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); 664 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); 689 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 690 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 692 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); [all …]
|
/external/bison/linux-lib/ |
D | unistd.h | 633 _GL_FUNCDECL_RPL (dup, int, (int oldfd)); 634 _GL_CXXALIAS_RPL (dup, int, (int oldfd)); 636 _GL_CXXALIAS_SYS (dup, int, (int oldfd)); 658 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); 659 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); 662 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); 664 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); 689 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 690 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 692 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); [all …]
|
/external/valgrind/main/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 | 206 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { in FdDup() argument 207 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd); in FdDup() 208 if (bogusfd(oldfd) || bogusfd(newfd)) in FdDup() 211 FdDesc *od = fddesc(thr, pc, oldfd); in FdDup()
|
D | tsan_interceptors.cc | 1400 TSAN_INTERCEPTOR(int, dup, int oldfd) { in TSAN_INTERCEPTOR() argument 1401 SCOPED_TSAN_INTERCEPTOR(dup, oldfd); in TSAN_INTERCEPTOR() 1402 int newfd = REAL(dup)(oldfd); in TSAN_INTERCEPTOR() 1403 if (oldfd >= 0 && newfd >= 0 && newfd != oldfd) in TSAN_INTERCEPTOR() 1404 FdDup(thr, pc, oldfd, newfd); in TSAN_INTERCEPTOR() 1408 TSAN_INTERCEPTOR(int, dup2, int oldfd, int newfd) { in TSAN_INTERCEPTOR() argument 1409 SCOPED_TSAN_INTERCEPTOR(dup2, oldfd, newfd); in TSAN_INTERCEPTOR() 1410 int newfd2 = REAL(dup2)(oldfd, newfd); in TSAN_INTERCEPTOR() 1411 if (oldfd >= 0 && newfd2 >= 0 && newfd2 != oldfd) in TSAN_INTERCEPTOR() 1412 FdDup(thr, pc, oldfd, newfd2); in TSAN_INTERCEPTOR() [all …]
|
D | tsan_fd.h | 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd);
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mac.cc | 104 uptr internal_dup2(int oldfd, int newfd) { in internal_dup2() argument 105 return dup2(oldfd, newfd); in internal_dup2()
|
D | sanitizer_libc.h | 84 uptr internal_dup2(int oldfd, int newfd);
|
D | sanitizer_linux.cc | 231 uptr internal_dup2(int oldfd, int newfd) { in internal_dup2() argument 233 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2() 235 return internal_syscall(SYSCALL(dup2), oldfd, newfd); in internal_dup2()
|
D | sanitizer_win.cc | 342 uptr internal_dup2(int oldfd, int newfd) { in internal_dup2() argument
|
D | sanitizer_common_syscalls.inc | 1257 PRE_SYSCALL(dup2)(long oldfd, long newfd) {} 1259 POST_SYSCALL(dup2)(long res, long oldfd, long newfd) {} 1261 PRE_SYSCALL(dup3)(long oldfd, long newfd, long flags) {} 1263 POST_SYSCALL(dup3)(long res, long oldfd, long newfd, long flags) {}
|
/external/valgrind/main/coregrind/ |
D | m_libcfile.c | 60 Int VG_(safe_fd)(Int oldfd) in VG_() 66 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); in VG_() 68 VG_(close)(oldfd); in VG_() 382 SysRes VG_(dup) ( Int oldfd ) in VG_() 384 return VG_(do_syscall1)(__NR_dup, oldfd); in VG_() 387 SysRes VG_(dup2) ( Int oldfd, Int newfd ) in VG_() 390 return VG_(do_syscall2)(__NR_dup2, oldfd, newfd); in VG_()
|
D | pub_core_libcfile.h | 43 extern Int VG_(safe_fd) ( Int oldfd );
|
/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), \ 2408 void __sanitizer_syscall_pre_impl_dup2(long oldfd, long newfd); 2409 void __sanitizer_syscall_post_impl_dup2(long res, long oldfd, long newfd); [all …]
|
/external/valgrind/main/coregrind/m_syswrap/ |
D | syswrap-generic.c | 3013 PRE_REG_READ1(long, "dup", unsigned int, oldfd); in PRE() 3031 PRE_REG_READ2(long, "dup2", unsigned int, oldfd, unsigned int, newfd); in PRE()
|
D | syswrap-linux.c | 2826 PRE_REG_READ3(long, "dup3", unsigned int, oldfd, unsigned int, newfd, int, flags); in PRE()
|
/external/valgrind/main/memcheck/tests/x86-linux/ |
D | scalar.stderr.exp | 474 Syscall param dup(oldfd) contains uninitialised byte(s) 655 Syscall param dup2(oldfd) contains uninitialised byte(s)
|