Searched refs:new_fd (Results 1 – 8 of 8) sorted by relevance
/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/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 | 58 int new_fd = it->second; in SpawnMultiProcessTestChild() local 59 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/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/dbus/dbus/ |
D | dbus-sysdeps-unix.c | 2949 int new_fd; in _dbus_dup() local 2954 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in _dbus_dup() 2955 cloexec_done = new_fd >= 0; in _dbus_dup() 2957 if (new_fd < 0 && errno == EINVAL) in _dbus_dup() 2960 new_fd = fcntl(fd, F_DUPFD, 3); in _dbus_dup() 2963 if (new_fd < 0) { in _dbus_dup() 2974 _dbus_fd_set_close_on_exec(new_fd); in _dbus_dup() 2977 return new_fd; in _dbus_dup()
|
/external/libchrome/base/process/ |
D | launch_posix.cc | 381 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess() local 382 if (new_fd != STDIN_FILENO) { in LaunchProcess()
|
/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()
|