Searched defs:newfd (Results 1 - 20 of 20) sorted by relevance

/external/bison/lib/
H A Dspawn_faction_adddup2.c37 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;
36 posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions, int fd, int newfd) argument
H A Dspawn_int.h38 int newfd; member in struct:__spawn_action::__anon354::__anon356
H A Dfcntl.c50 dupfd (int oldfd, int newfd, int flags) argument
53 file descriptors less than newfd are filled up. */
62 if (newfd < 0 || getdtablesize () <= newfd)
105 if (newfd <= duplicated_fd)
/external/elfutils/src/
H A Dranlib.c146 copy_content (Elf *elf, int newfd, off_t off, size_t n) argument
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, SARMA
[all...]
H A Dar.c434 copy_content (Elf *elf, int newfd, off_t off, size_t n) argument
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, SARMA
836 write_member(struct armem *memb, off_t *startp, off_t *lenp, Elf *elf, off_t end_off, int newfd) argument
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/
H A Dkernel_wrap_newlib.cc74 int WRAP(dup)(int fd, int* newfd) { argument
75 *newfd = ki_dup(fd);
76 return (*newfd < 0) ? errno : 0;
79 int WRAP(dup2)(int fd, int newfd) { argument
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) { argument
109 *newfd = ki_open(pathname, oflag);
110 return (*newfd <
171 _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) argument
[all...]
H A Dkernel_wrap_glibc.cc156 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) { argument
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) { argument
353 return REAL(open)(pathname, oflag, cmode, newfd);
[all...]
H A Dkernel_wrap_win.cc72 int _dup2(int oldfd, int newfd) { argument
73 return ki_dup2(oldfd, newfd);
251 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) { argument
H A Dkernel_intercept.cc85 int ki_dup2(int oldfd, int newfd) { argument
87 return s_kp->dup2(oldfd, newfd);
H A Dkernel_proxy.cc162 int KernelProxy::dup2(int oldfd, int newfd) { argument
164 if (oldfd == newfd)
165 return newfd;
174 FreeAndReassignFD(newfd, old_handle);
175 return newfd;
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cc193 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { argument
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) { argument
237 DPrintf("#%d: FdSocketAccept(%d, %d)\n", thr->tid, fd, newfd);
240 init(thr, pc, newfd, &fdctx.socksync);
H A Dtsan_interceptors.cc1304 int newfd = REAL(dup)(oldfd); local
1305 if (oldfd >= 0 && newfd >= 0 && newfd != oldfd)
1306 FdDup(thr, pc, oldfd, newfd);
1307 return newfd;
1310 TSAN_INTERCEPTOR(int, dup2, int oldfd, int newfd) { argument
1311 SCOPED_TSAN_INTERCEPTOR(dup2, oldfd, newfd);
1312 int newfd2 = REAL(dup2)(oldfd, newfd);
1318 TSAN_INTERCEPTOR(int, dup3, int oldfd, int newfd, int flags) { argument
1319 SCOPED_TSAN_INTERCEPTOR(dup3, oldfd, newfd, flag
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.cc102 uptr internal_dup2(int oldfd, int newfd) { argument
103 return dup2(oldfd, newfd);
H A Dsanitizer_win.cc284 uptr internal_dup2(int oldfd, int newfd) { argument
H A Dsanitizer_linux.cc179 uptr internal_dup2(int oldfd, int newfd) { argument
180 return internal_syscall(__NR_dup2, oldfd, newfd);
/external/qemu/distrib/sdl-1.2.15/src/cdrom/macosx/
H A DAudioFileReaderThread.c90 FileData *newfd = (FileData *) SDL_malloc(sizeof (FileData)); local
91 newfd->obj = inItem;
92 newfd->next = NULL;
96 frt->mFileData = newfd;
98 prev->next = newfd;
/external/valgrind/main/coregrind/
H A Dm_libcfile.c62 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);
/external/chromium_org/net/third_party/nss/ssl/
H A Dsslsock.c2026 PRFileDesc *newfd = NULL; local
2047 newfd = osfd->methods->accept(osfd, sockaddr, timeout);
2048 if (newfd == NULL) {
2065 status = ssl_PushIOLayer(ns, newfd, PR_TOP_IO_LAYER);
2082 return newfd;
2087 if (newfd != NULL)
2088 PR_Close(newfd);
/external/qemu/
H A Dnet-android.c1787 int newfd; local
1804 newfd = net_socket_mcast_create(&saddr);
1805 if (newfd < 0) {
1810 /* clone newfd to fd, close newfd */
1811 dup2(newfd, fd);
1812 socket_close(newfd);
H A Dnet.c1669 int newfd; local
1687 newfd = net_socket_mcast_create(&saddr);
1688 if (newfd < 0) {
1693 /* clone newfd to fd, close newfd */
1694 dup2(newfd, fd);
1695 close(newfd);

Completed in 967 milliseconds