Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 11 of 11) sorted by relevance

/external/elfutils/src/
Dranlib.c146 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() argument
158 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; in copy_content()
246 int newfd = mkstemp (tmpfname); in handle_file() local
247 if (unlikely (newfd == -1)) in handle_file()
256 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) in handle_file()
261 if (newfd != -1) in handle_file()
262 close (newfd); in handle_file()
277 && ((write_retry (newfd, symtab.symsoff, in handle_file()
280 || (write_retry (newfd, symtab.symsname, in handle_file()
286 && copy_content (arelf, newfd, SARMAG, index_off - SARMAG)) in handle_file()
[all …]
Dar.c434 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() argument
446 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; in copy_content()
753 int newfd = mkstemp (tmpfname); in do_oper_extract() local
754 if (unlikely (newfd == -1)) in do_oper_extract()
763 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) in do_oper_extract()
768 if (newfd != -1) in do_oper_extract()
769 close (newfd); in do_oper_extract()
784 && ((write_retry (newfd, symtab.symsoff, in do_oper_extract()
787 || (write_retry (newfd, symtab.symsname, in do_oper_extract()
793 && copy_content (elf, newfd, SARMAG, index_off - SARMAG)) in do_oper_extract()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/cdrom/macosx/
DAudioFileReaderThread.c90 FileData *newfd = (FileData *) SDL_malloc(sizeof (FileData)); in FileReaderThread_TryNextRead() local
91 newfd->obj = inItem; in FileReaderThread_TryNextRead()
92 newfd->next = NULL; in FileReaderThread_TryNextRead()
96 frt->mFileData = newfd; in FileReaderThread_TryNextRead()
98 prev->next = newfd; in FileReaderThread_TryNextRead()
/external/valgrind/main/coregrind/
Dm_libcfile.c62 Int newfd; in VG_() local
66 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); in VG_()
67 if (newfd != -1) in VG_()
71 VG_(fcntl)(newfd, VKI_F_SETFD, VKI_FD_CLOEXEC); in VG_()
73 vg_assert(newfd >= VG_(fd_hard_limit)); in VG_()
74 return newfd; in VG_()
356 SysRes VG_(dup2) ( Int oldfd, Int newfd ) in VG_()
359 return VG_(do_syscall2)(__NR_dup2, oldfd, newfd); in VG_()
/external/valgrind/main/include/
Dpub_tool_libcfile.h86 extern SysRes VG_(dup2) ( Int oldfd, Int newfd );
/external/qemu/
Dnet-android.c1787 int newfd; in net_socket_fd_init_dgram() local
1804 newfd = net_socket_mcast_create(&saddr); in net_socket_fd_init_dgram()
1805 if (newfd < 0) { in net_socket_fd_init_dgram()
1811 dup2(newfd, fd); in net_socket_fd_init_dgram()
1812 socket_close(newfd); in net_socket_fd_init_dgram()
Dnet.c1669 int newfd; in net_socket_fd_init_dgram() local
1687 newfd = net_socket_mcast_create(&saddr); in net_socket_fd_init_dgram()
1688 if (newfd < 0) { in net_socket_fd_init_dgram()
1694 dup2(newfd, fd); in net_socket_fd_init_dgram()
1695 close(newfd); in net_socket_fd_init_dgram()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-generic.c2939 PRE_REG_READ2(long, "dup2", unsigned int, oldfd, unsigned int, newfd); in PRE()
Dsyswrap-linux.c2564 PRE_REG_READ3(long, "dup3", unsigned int, oldfd, unsigned int, newfd, int, flags); in PRE()
/external/valgrind/main/memcheck/tests/x86-linux/
Dscalar.stderr.exp659 Syscall param dup2(newfd) contains uninitialised byte(s)
/external/valgrind/main/
DNEWS2913 83998 Assertion `newfd > vgPlain_max_fd' failed (see below)