/external/bison/lib/ |
spawn_faction_adddup2.c | 37 int fd, int newfd) 43 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) 47 return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd); 62 rec->action.dup2_action.newfd = newfd;
|
spawn_int.h | 38 int newfd; member in struct:__spawn_action::__anon2760::__anon2762
|
fcntl.c | 46 /* Duplicate OLDFD into the first available slot of at least NEWFD, 50 dupfd (int oldfd, int newfd, int flags) 53 file descriptors less than newfd are filled up. */ 62 if (newfd < 0 || getdtablesize () <= newfd) 105 if (newfd <= duplicated_fd)
|
unistd.in.h | 337 /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if 338 NEWFD = OLDFD, otherwise close NEWFD first if it is open. 339 Return newfd if successful, otherwise -1 and errno set. 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)); 365 /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the 369 Close NEWFD first if it is open [all...] |
spawni.c | 282 action->action.dup2_action.newfd) 283 != action->action.dup2_action.newfd)
|
/frameworks/compile/libbcc/lib/Support/ |
OutputFile.cpp | 75 int newfd; local 78 newfd = ::dup(mFD); 79 if (newfd < 0) { 92 new (std::nothrow) llvm::raw_fd_ostream(newfd, /* shouldClose */true);
|
/external/elfutils/src/ |
ranlib.c | 146 copy_content (Elf *elf, int newfd, off_t off, size_t n) 158 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; 246 int newfd = mkstemp (tmpfname); local 247 if (unlikely (newfd == -1)) 256 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) 261 if (newfd != -1) 262 close (newfd); 277 && ((write_retry (newfd, symtab.symsoff, 280 || (write_retry (newfd, symtab.symsname, 286 && copy_content (arelf, newfd, SARMAG, index_off - SARMAG) [all...] |
ar.c | 434 copy_content (Elf *elf, int newfd, off_t off, size_t n) 446 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; 753 int newfd = mkstemp (tmpfname); local 754 if (unlikely (newfd == -1)) 763 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) 768 if (newfd != -1) 769 close (newfd); 784 && ((write_retry (newfd, symtab.symsoff, 787 || (write_retry (newfd, symtab.symsname, 793 && copy_content (elf, newfd, SARMAG, index_off - SARMAG) 992 int newfd = mkstemp (tmpfname); local 1239 int newfd = open (argv[cnt], O_RDONLY); local 1377 int newfd; local [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
kernel_wrap_newlib.cc | 74 int WRAP(dup)(int fd, int* newfd) { 75 *newfd = ki_dup(fd); 76 return (*newfd < 0) ? errno : 0; 79 int WRAP(dup2)(int fd, int newfd) { 80 newfd = ki_dup2(fd, newfd); 81 return (newfd < 0) ? errno : 0; 108 int WRAP(open)(const char* pathname, int oflag, mode_t cmode, int* newfd) { 109 *newfd = ki_open(pathname, oflag); 110 return (*newfd < 0) ? errno : 0 [all...] |
kernel_wrap_real.h | 22 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd);
|
kernel_wrap_glibc.cc | 156 int WRAP(dup)(int fd, int* newfd) NOTHROW { 157 *newfd = ki_dup(fd); 158 return (*newfd < 0) ? errno : 0; 161 int WRAP(dup2)(int fd, int newfd) NOTHROW { 162 return (ki_dup2(fd, newfd) < 0) ? errno : 0; 229 int WRAP(open)(const char* pathname, int oflag, mode_t cmode, int* newfd) { 230 *newfd = ki_open(pathname, oflag); 231 return (*newfd < 0) ? errno : 0; 352 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) { 353 return REAL(open)(pathname, oflag, cmode, newfd); [all...] |
kernel_wrap_win.cc | 72 int _dup2(int oldfd, int newfd) { 73 return ki_dup2(oldfd, newfd); 251 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) {
|
kernel_intercept.h | 37 int ki_dup2(int oldfd, int newfd);
|
kernel_proxy.h | 55 virtual int dup2(int fd, int newfd);
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_fd.h | 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd); 54 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd);
|
tsan_fd.cc | 193 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { 194 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd); 198 FdClose(thr, pc, newfd); 199 init(thr, pc, newfd, ref(od->sync)); 236 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) { 237 DPrintf("#%d: FdSocketAccept(%d, %d)\n", thr->tid, fd, newfd); 240 init(thr, pc, newfd, &fdctx.socksync);
|
/system/core/sh/ |
redir.c | 379 int newfd; local 381 newfd = fcntl(from, F_DUPFD, to); 382 if (newfd < 0) { 388 return newfd;
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_libc.h | 80 uptr internal_dup2(int oldfd, int newfd);
|
sanitizer_mac.cc | 102 uptr internal_dup2(int oldfd, int newfd) { 103 return dup2(oldfd, newfd);
|
/external/valgrind/main/include/ |
pub_tool_libcfile.h | 85 extern SysRes VG_(dup2) ( Int oldfd, Int newfd );
|
/external/bison/darwin-lib/ |
unistd.h | 649 /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if 650 NEWFD = OLDFD, otherwise close NEWFD first if it is open. 651 Return newfd if successful, otherwise -1 and errno set. 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)); 677 /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the 681 Close NEWFD first if it is open [all...] |
/external/bison/linux-lib/ |
unistd.h | 649 /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if 650 NEWFD = OLDFD, otherwise close NEWFD first if it is open. 651 Return newfd if successful, otherwise -1 and errno set. 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)); 677 /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the 681 Close NEWFD first if it is open [all...] |
/external/valgrind/main/coregrind/ |
m_libcfile.c | 62 Int newfd; local 66 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); 67 if (newfd != -1) 71 VG_(fcntl)(newfd, VKI_F_SETFD, VKI_FD_CLOEXEC); 73 vg_assert(newfd >= VG_(fd_hard_limit)); 74 return newfd; 358 SysRes VG_(dup2) ( Int oldfd, Int newfd ) 361 return VG_(do_syscall2)(__NR_dup2, oldfd, newfd); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/ |
AudioFileReaderThread.c | 90 FileData *newfd = (FileData *) SDL_malloc(sizeof (FileData)); local 91 newfd->obj = inItem; 92 newfd->next = NULL; 96 frt->mFileData = newfd; 98 prev->next = newfd;
|
/packages/inputmethods/PinyinIME/jni/android/ |
com_android_inputmethod_pinyin_PinyinDecoderService.cpp | 75 int newfd = dup(fd); local 76 if (im_open_decoder_fd(newfd, startoffset, length, (const char*)fud)) 79 close(newfd);
|