HomeSort by relevance Sort by last modified time
    Searched full:newfd (Results 1 - 25 of 68) sorted by null

1 2 3

  /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;
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)
spawn_int.h 38 int newfd; member in struct:__spawn_action::__anon2760::__anon2762
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...]
  /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 96 int WRAP(dup)(int fd, int* newfd) {
97 *newfd = ki_dup(fd);
98 return (*newfd < 0) ? errno : 0;
101 int WRAP(dup2)(int fd, int newfd) {
102 newfd = ki_dup2(fd, newfd);
103 return (newfd < 0) ? errno : 0;
171 int WRAP(open)(const char* pathname, int oflag, mode_t cmode, int* newfd) {
172 *newfd = ki_open(pathname, oflag);
173 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 157 int WRAP(dup)(int fd, int* newfd) NOTHROW {
158 *newfd = ki_dup(fd);
159 return (*newfd < 0) ? errno : 0;
162 int WRAP(dup2)(int fd, int newfd) NOTHROW {
163 return (ki_dup2(fd, newfd) < 0) ? errno : 0;
230 int WRAP(open)(const char* pathname, int oflag, mode_t cmode, int* newfd) {
231 *newfd = ki_open(pathname, oflag);
232 return (*newfd < 0) ? errno : 0;
366 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) {
368 return REAL(open)(pathname, oflag, cmode, newfd);
    [all...]
kernel_wrap_dummy.cc 47 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) {
kernel_wrap_win.cc 72 int _dup2(int oldfd, int newfd) {
73 return ki_dup2(oldfd, 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/compiler-rt/lib/tsan/rtl/
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);
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_interceptors.cc 1304 int newfd = REAL(dup)(oldfd); local
    [all...]
  /external/clang/lib/Sema/
SemaDecl.cpp     [all...]
  /system/core/sh/
redir.c 379 int newfd; local
381 newfd = fcntl(from, F_DUPFD, to);
382 if (newfd < 0) {
388 return newfd;
  /frameworks/base/services/jni/
com_android_server_UsbHostManager.cpp 158 int newFD = dup(fd);
161 jobject fileDescriptor = jniCreateFileDescriptor(env, newFD);
  /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);
  /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...]
  /ndk/sources/host-tools/sed-4.2.1/lib/
unistd.in.h 156 /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if
157 NEWFD = OLDFD, otherwise close NEWFD first if it is open.
161 extern int dup2 (int oldfd, int newfd);
  /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...]
  /libcore/luni/src/main/java/libcore/io/
BlockGuardOs.java 88 // TODO: Untag newFd when needed for dup2(FileDescriptor oldFd, int newFd)

Completed in 755 milliseconds

1 2 3