/external/elfutils/src/ |
D | ranlib.c | 134 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() argument 146 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; in copy_content() 234 int newfd = mkstemp (tmpfname); in handle_file() local 235 if (unlikely (newfd == -1)) in handle_file() 244 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) in handle_file() 249 if (newfd != -1) in handle_file() 250 close (newfd); in handle_file() 265 && ((write_retry (newfd, symtab.symsoff, in handle_file() 268 || (write_retry (newfd, symtab.symsname, in handle_file() 274 && copy_content (arelf, newfd, SARMAG, index_off - SARMAG)) in handle_file() [all …]
|
D | ar.c | 439 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() argument 451 return write_retry (newfd, rawfile + off, n) != (ssize_t) n; in copy_content() 769 int newfd = mkstemp (tmpfname); in do_oper_extract() local 770 if (unlikely (newfd == -1)) in do_oper_extract() 779 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG)) in do_oper_extract() 784 if (newfd != -1) in do_oper_extract() 785 close (newfd); in do_oper_extract() 800 && ((write_retry (newfd, symtab.symsoff, in do_oper_extract() 803 || (write_retry (newfd, symtab.symsname, in do_oper_extract() 809 && copy_content (elf, newfd, SARMAG, index_off - SARMAG)) in do_oper_extract() [all …]
|
/external/bison/lib/ |
D | spawn_faction_adddup2.c | 37 int fd, int newfd) in posix_spawn_file_actions_adddup2() argument 43 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) in posix_spawn_file_actions_adddup2() 47 return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd); in posix_spawn_file_actions_adddup2() 62 rec->action.dup2_action.newfd = newfd; in posix_spawn_file_actions_adddup2()
|
D | fcntl.c | 50 dupfd (int oldfd, int newfd, int flags) in dupfd() argument 62 if (newfd < 0 || getdtablesize () <= newfd) in dupfd() 105 if (newfd <= duplicated_fd) in dupfd()
|
D | unistd.in.h | 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)); 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, int flags)); 479 _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
|
D | spawn_int.h | 38 int newfd; member
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 457 int newfd; in do_child() local 460 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 461 if (newfd >= 0) { in do_child() 462 FD_SET(newfd, &afds); in do_child() 463 nfds = MAX(nfds, newfd + 1); in do_child() 465 (void)write(newfd, "hoser\n", 6); in do_child() 469 int newfd; in do_child() local 472 newfd = accept(ufd, (struct sockaddr *)&fsun, &fromlen); in do_child() 473 if (newfd >= 0) { in do_child() 474 FD_SET(newfd, &afds); in do_child() [all …]
|
/external/toybox/toys/pending/ |
D | tcpsvd.c | 271 int hash, fd, newfd, j; in tcpsvd_main() local 311 newfd = fd; in tcpsvd_main() 313 newfd = accept(fd, (struct sockaddr *)buf, &len); in tcpsvd_main() 314 if (newfd < 0) perror_exit("Error on accept"); in tcpsvd_main() 331 if (ptr) write(newfd, ptr, strlen(ptr)+1); in tcpsvd_main() 332 close(newfd); in tcpsvd_main() 389 if (TT.udp && (connect(newfd, (struct sockaddr *)buf, sizeof(buf)) < 0)) in tcpsvd_main() 394 dup2(newfd, 0); in tcpsvd_main() 395 dup2(newfd, 1); in tcpsvd_main() 399 xclose(newfd); //close and reopen for next client. in tcpsvd_main()
|
/external/ltp/testcases/kernel/syscalls/recv/ |
D | recv01.c | 287 int newfd; in do_child() local 290 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 291 if (newfd >= 0) { in do_child() 292 FD_SET(newfd, &afds); in do_child() 293 nfds = MAX(nfds, newfd + 1); in do_child() 295 (void)write(newfd, "hoser\n", 6); in do_child()
|
/external/ltp/testcases/kernel/syscalls/close/ |
D | close01.c | 39 int fild, newfd, pipefildes[2]; variable 47 &newfd, "file"}, 71 if ((newfd = dup(fild)) == -1) in main()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_fd.cc | 225 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write) { in FdDup() argument 226 DPrintf("#%d: FdDup(%d, %d)\n", thr->tid, oldfd, newfd); in FdDup() 227 if (bogusfd(oldfd) || bogusfd(newfd)) in FdDup() 232 FdClose(thr, pc, newfd, write); in FdDup() 233 init(thr, pc, newfd, ref(od->sync), write); in FdDup() 280 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) { in FdSocketAccept() argument 281 DPrintf("#%d: FdSocketAccept(%d, %d)\n", thr->tid, fd, newfd); in FdSocketAccept() 286 init(thr, pc, newfd, &fdctx.socksync); in FdSocketAccept()
|
D | tsan_fd.h | 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write); 54 void FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd);
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
D | recvfrom01.c | 316 int newfd; in do_child() local 319 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 320 if (newfd >= 0) { in do_child() 321 FD_SET(newfd, &afds); in do_child() 322 nfds = MAX(nfds, newfd + 1); in do_child() 324 (void)write(newfd, "hoser\n", 6); in do_child()
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest4.c | 195 int fd, newfd; in main() local 308 newfd = -1; in main() 309 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd"); in main() 316 if ((newfd = getdtablesize()) < 0) { in main() 321 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6, in main() 326 close(newfd); in main() 346 if ((newfd = open("/dev/null", O_DIRECT | O_RDWR)) < 0) { in main() 349 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null"); in main() 353 close(newfd); in main()
|
/external/skia/experimental/Networking/ |
D | SkSockets.cpp | 265 int newfd; in acceptConnections() local 284 newfd = accept(fSockfd, (struct sockaddr*)&clientAddr, &clientLen); in acceptConnections() 285 if (newfd< 0) { in acceptConnections() 289 SkDebugf("New incoming connection - %d\n", newfd); in acceptConnections() 292 this->setNonBlocking(newfd); in acceptConnections() 294 this->addToMasterSet(newfd); in acceptConnections()
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 291 int newfd; in do_child() local 294 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 295 if (newfd >= 0) { in do_child() 296 FD_SET(newfd, &afds); in do_child() 297 nfds = MAX(nfds, newfd + 1); in do_child()
|
/external/ltp/testcases/kernel/syscalls/send/ |
D | send01.c | 229 int newfd; in do_child() local 232 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 233 if (newfd >= 0) { in do_child() 234 FD_SET(newfd, &afds); in do_child() 235 nfds = MAX(nfds, newfd + 1); in do_child()
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 504 int newfd; in do_child() local 507 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 508 if (newfd >= 0) { in do_child() 509 FD_SET(newfd, &afds); in do_child() 510 nfds = MAX(nfds, newfd + 1); in do_child() 514 int newfd; in do_child() local 517 newfd = accept(ufd, (struct sockaddr *)&fsun, &fromlen); in do_child() 518 if (newfd >= 0) in do_child() 519 FD_SET(newfd, &afds); in do_child()
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto01.c | 299 int newfd; in do_child() local 302 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child() 303 if (newfd >= 0) { in do_child() 304 FD_SET(newfd, &afds); in do_child() 305 nfds = MAX(nfds, newfd + 1); in do_child()
|
/external/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 51 int *newfd; member 77 *(test_cases[i].newfd), test_cases[i].flags)); in main()
|
/external/bison/linux-lib/ |
D | unistd.h | 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)); 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, int flags)); 791 _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
|
/external/bison/darwin-lib/ |
D | unistd.h | 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)); 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, int flags)); 791 _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
|
/external/valgrind/coregrind/ |
D | m_libcfile.c | 57 Int newfd; in VG_() local 61 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); in VG_() 62 if (newfd != -1) in VG_() 66 VG_(fcntl)(newfd, VKI_F_SETFD, VKI_FD_CLOEXEC); in VG_() 68 vg_assert(newfd >= VG_(fd_hard_limit)); in VG_() 69 return newfd; in VG_() 481 SysRes VG_(dup2) ( Int oldfd, Int newfd ) in VG_() 488 if (oldfd == newfd) { in VG_() 491 return VG_(mk_SysRes_Success)(newfd); in VG_() 493 return VG_(do_syscall3)(__NR_dup3, oldfd, newfd, 0); in VG_() [all …]
|
/external/ltp/testcases/kernel/syscalls/symlinkat/ |
D | symlinkat01.c | 72 int *newfd; member 178 TEST(mysymlinkat(desc->oldfn, *desc->newfd, desc->newfn)); in mysymlinkat_test()
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat01.c | 93 int *newfd; member 244 (*desc->oldfd, desc->oldfn, *desc->newfd, desc->newfn, in mylinkat_test()
|