Searched refs:newfd (Results 1 - 25 of 42) sorted by relevance

12

/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::__anon357::__anon359
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)
H A Dunistd.in.h339 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));
370 Return newfd if successful, otherwise -1 and errno set.
377 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
378 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
380 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
381 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, in
[all...]
H A Dspawni.c282 action->action.dup2_action.newfd)
283 != action->action.dup2_action.newfd)
/external/chromium_org/components/nacl/loader/nonsfi/
H A Dirt_fdio.cc26 int IrtDup(int fd, int* newfd) { argument
27 return CheckErrorWithResult(dup(fd), newfd);
30 int IrtDup2(int fd, int newfd) { argument
31 return CheckError(dup2(fd, newfd));
/external/elfutils/0.153/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.c450 copy_content (Elf *elf, int newfd, off_t off, size_t n) argument
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, SARMA
863 write_member(struct armem *memb, off_t *startp, off_t *lenp, Elf *elf, off_t end_off, int newfd) argument
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/
H A Dtsan_fd.h47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd);
54 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd);
H A Dtsan_fd.cc206 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { argument
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) { argument
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/
H A Dkernel_wrap_newlib.cc99 int WRAP(dup)(int fd, int* newfd) { argument
100 *newfd = ki_dup(fd);
101 ERRNO_RTN(*newfd);
104 int WRAP(dup2)(int fd, int newfd) { argument
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...]
H A Dkernel_wrap_real.h29 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd);
H A Dkernel_wrap_dummy.cc51 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) { argument
H A Dkernel_wrap_bionic.cc155 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...]
H A Dkernel_wrap_glibc.cc199 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...]
H A Dkernel_wrap_win.cc72 int _dup2(int oldfd, int newfd) { argument
73 return ki_dup2(oldfd, newfd);
/external/chromium_org/third_party/skia/experimental/Networking/
H A DSkSockets.cpp265 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/
H A DSkSockets.cpp265 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/
H A Dunistd.h651 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));
682 Return newfd if successful, otherwise -1 and errno set.
689 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
690 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
692 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
693 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, in
[all...]
/external/bison/linux-lib/
H A Dunistd.h651 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));
682 Return newfd if successful, otherwise -1 and errno set.
689 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
690 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
692 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
693 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, in
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.h84 uptr internal_dup2(int oldfd, int newfd);
H A Dsanitizer_mac.cc104 uptr internal_dup2(int oldfd, int newfd) { argument
105 return dup2(oldfd, newfd);
/external/valgrind/main/include/
H A Dpub_tool_libcfile.h88 extern SysRes VG_(dup2) ( Int oldfd, Int 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;
387 SysRes VG_(dup2) ( Int oldfd, Int newfd )
390 return VG_(do_syscall2)(__NR_dup2, oldfd, newfd);

Completed in 7199 milliseconds

12