/external/toybox/toys/pending/ |
D | telnetd.c | 55 int new_fd, pty_fd; member 310 int pty_fd, new_fd, c = 0, w, master_fd = 0; in telnetd_main() local 326 tm->new_fd = 0; in telnetd_main() 350 if (tm->new_fd >= 0 && tm->buff2_avail < BUFSIZE) FD_SET(tm->new_fd, &rd); in telnetd_main() 353 if (tm->new_fd >= 0 && (tm->buff1_avail - tm->buff1_written) > 0) in telnetd_main() 354 FD_SET(tm->new_fd, &wr); in telnetd_main() 364 new_fd = accept(master_fd, NULL, NULL); in telnetd_main() 365 if (new_fd < 0) continue; in telnetd_main() 367 fcntl(new_fd, F_SETFD, FD_CLOEXEC); in telnetd_main() 368 if (new_fd > TT.gmax_fd) TT.gmax_fd = new_fd; in telnetd_main() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_winsys_drm.c | 45 int new_fd; in vl_drm_screen_create() local 51 if (fd < 0 || (new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3)) < 0) in vl_drm_screen_create() 54 if (pipe_loader_drm_probe_fd(&vscreen->dev, new_fd)) in vl_drm_screen_create() 72 close(new_fd); in vl_drm_screen_create()
|
/external/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 47 static int new_fd; variable 57 {&old_fd, &new_fd, INVALID_FLAG, EINVAL} 109 new_fd = -1; in setup()
|
/external/openssh/ |
D | mux.c | 317 int new_fd[3]; in process_mux_new_session() local 379 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { in process_mux_new_session() 383 close(new_fd[j]); in process_mux_new_session() 401 new_fd[0], new_fd[1], new_fd[2]); in process_mux_new_session() 411 close(new_fd[0]); in process_mux_new_session() 412 close(new_fd[1]); in process_mux_new_session() 413 close(new_fd[2]); in process_mux_new_session() 438 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1) in process_mux_new_session() 442 if (!isatty(new_fd[0])) in process_mux_new_session() 443 set_nonblock(new_fd[0]); in process_mux_new_session() [all …]
|
/external/bison/lib/ |
D | spawni.c | 256 int new_fd = open_not_cancel (action->action.open_action.path, in __spawni() local 261 if (new_fd == -1) in __spawni() 266 if (new_fd != action->action.open_action.fd) in __spawni() 268 if (dup2 (new_fd, action->action.open_action.fd) in __spawni() 273 if (close_not_cancel (new_fd) != 0) in __spawni()
|
/external/libchrome/base/test/ |
D | multiprocess_test_android.cc | 268 int new_fd; in StartProcessInHelper() local 269 CHECK(iter.ReadInt(&new_fd)); in StartProcessInHelper() 271 if (new_fd != old_fd) { in StartProcessInHelper() 272 if (dup2(old_fd, new_fd) < 0) { in StartProcessInHelper() 437 int new_fd = it->second; in SpawnMultiProcessTestChild() local 438 if (dup2(old_fd, new_fd) < 0) { in SpawnMultiProcessTestChild()
|
/external/libchrome/sandbox/linux/seccomp-bpf/ |
D | syscall_unittest.cc | 86 int new_fd; in TEST() local 88 ASSERT_GE(new_fd = Syscall::Call(__NR_dup, 2), 0); in TEST() 89 int close_return_value = IGNORE_EINTR(Syscall::Call(__NR_close, new_fd)); in TEST()
|
/external/fmtlib/fmt/ |
D | posix.cc | 172 int new_fd = FMT_POSIX_CALL(dup(fd)); in dup() local 173 if (new_fd == -1) in dup() 175 return File(new_fd); in dup()
|
/external/libevent/ |
D | listener.c | 396 evutil_socket_t new_fd = accept(fd, (struct sockaddr*)&ss, &socklen); in listener_read_cb() local 397 if (new_fd < 0) in listener_read_cb() 402 evutil_closesocket(new_fd); in listener_read_cb() 407 evutil_make_socket_nonblocking(new_fd); in listener_read_cb() 410 evutil_closesocket(new_fd); in listener_read_cb() 418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen, in listener_read_cb()
|
/external/libchrome/base/memory/ |
D | shared_memory_posix.cc | 484 const int new_fd = HANDLE_EINTR(dup(handle_to_dup)); in ShareToProcessCommon() local 485 if (new_fd < 0) { in ShareToProcessCommon() 494 new_handle->fd = new_fd; in ShareToProcessCommon()
|
/external/libchrome/base/process/ |
D | launch_posix.cc | 386 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess() local 387 if (new_fd != STDIN_FILENO) { in LaunchProcess()
|
/external/valgrind/coregrind/ |
D | m_libcprint.c | 394 static void finalize_sink_fd(OutputSink *sink, Int new_fd, Bool is_xml) in finalize_sink_fd() argument 397 Int safe_fd = VG_(fcntl)(new_fd, VKI_F_DUPFD, VG_(fd_hard_limit)); in finalize_sink_fd()
|
/external/ppp/pppd/ |
D | sys-linux.c | 267 static void set_ppp_fd (int new_fd) in set_ppp_fd() argument 269 ppp_fd = new_fd; in set_ppp_fd() 271 ppp_dev_fd = new_fd; in set_ppp_fd()
|