/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::__anon4982::__anon4984
|
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/chromium_org/components/nacl/loader/nonsfi/ |
irt_fdio.cc | 26 int IrtDup(int fd, int* newfd) { 27 return CheckErrorWithResult(dup(fd), newfd); 30 int IrtDup2(int fd, int newfd) { 31 return CheckError(dup2(fd, newfd));
|
/external/elfutils/0.153/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 | 450 copy_content (Elf *elf, int newfd, off_t off, size_t n) 462 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; 780 int newfd = mkstemp (tmpfname); local 781 if (unlikely (newfd == -1)) 790 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) 795 if (newfd != -1) 796 close (newfd); 811 && ((write_retry (newfd, symtab.symsoff, 814 || (write_retry (newfd, symtab.symsname, 820 && copy_content (elf, newfd, SARMAG, index_off - SARMAG) 1019 int newfd = mkstemp (tmpfname); local 1267 int newfd = open (argv[cnt], O_RDONLY); local 1406 int newfd; local [all...] |
/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 | 206 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { 207 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd); 208 if (bogusfd(oldfd) || bogusfd(newfd)) 213 FdClose(thr, pc, newfd); 214 init(thr, pc, newfd, ref(od->sync)); 261 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) { 262 DPrintf("#%d: FdSocketAccept(%d, %d)\n", thr->tid, fd, newfd); 267 init(thr, pc, newfd, &fdctx.socksync);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
kernel_wrap_newlib.cc | 99 int WRAP(dup)(int fd, int* newfd) { 100 *newfd = ki_dup(fd); 101 ERRNO_RTN(*newfd); 104 int WRAP(dup2)(int fd, int newfd) { 105 newfd = ki_dup2(fd, newfd); 106 ERRNO_RTN(newfd); 188 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { 189 *newfd = ki_open(pathname, oflag, mode); 190 ERRNO_RTN(*newfd); [all...] |
kernel_wrap_real.h | 29 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd);
|
kernel_wrap_dummy.cc | 51 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) {
|
kernel_wrap_bionic.cc | 155 int WRAP(dup)(int fd, int* newfd) NOTHROW { 156 *newfd = ki_dup(fd); 157 ERRNO_RTN(*newfd); variable 160 int WRAP(dup2)(int fd, int newfd) NOTHROW { 161 ERRNO_RTN(ki_dup2(fd, newfd)); 267 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { 268 *newfd = ki_open(pathname, oflag, mode); 269 ERRNO_RTN(*newfd); 469 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) { 471 return REAL(open)(pathname, oflag, mode, newfd); [all...] |
kernel_wrap_glibc.cc | 199 int WRAP(dup)(int fd, int* newfd) NOTHROW { 200 *newfd = ki_dup(fd); 201 RTN_ERRNO_IF(*newfd < 0); 205 int WRAP(dup2)(int fd, int newfd) NOTHROW { 206 ERRNO_RTN(ki_dup2(fd, newfd)); 282 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { 283 *newfd = ki_open(pathname, oflag, mode); 284 RTN_ERRNO_IF(*newfd < 0); 615 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) { 617 return REAL(open)(pathname, oflag, mode, newfd); [all...] |
kernel_wrap_win.cc | 72 int _dup2(int oldfd, int newfd) { 73 return ki_dup2(oldfd, newfd);
|
/external/chromium_org/third_party/skia/experimental/Networking/ |
SkSockets.cpp | 265 int newfd; local 284 newfd = accept(fSockfd, (struct sockaddr*)&clientAddr, &clientLen); 285 if (newfd< 0) { 289 SkDebugf("New incoming connection - %d\n", newfd); 292 this->setNonBlocking(newfd); 294 this->addToMasterSet(newfd);
|
/external/skia/experimental/Networking/ |
SkSockets.cpp | 265 int newfd; local 284 newfd = accept(fSockfd, (struct sockaddr*)&clientAddr, &clientLen); 285 if (newfd< 0) { 289 SkDebugf("New incoming connection - %d\n", newfd); 292 this->setNonBlocking(newfd); 294 this->addToMasterSet(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/compiler-rt/lib/sanitizer_common/ |
sanitizer_libc.h | 84 uptr internal_dup2(int oldfd, int newfd);
|
sanitizer_mac.cc | 104 uptr internal_dup2(int oldfd, int newfd) { 105 return dup2(oldfd, newfd);
|
/external/valgrind/main/include/ |
pub_tool_libcfile.h | 88 extern SysRes VG_(dup2) ( Int oldfd, Int newfd );
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
dd.c | 311 int newfd; local 322 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 323 if (newfd < 0) { 329 io->fd = newfd;
|