Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 9 of 9) sorted by relevance

/external/toybox/toys/pending/
Dtelnetd.c55 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/openssh/
Dmux.c314 int new_fd[3]; in process_mux_new_session() local
376 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { in process_mux_new_session()
380 close(new_fd[j]); in process_mux_new_session()
398 new_fd[0], new_fd[1], new_fd[2]); in process_mux_new_session()
408 close(new_fd[0]); in process_mux_new_session()
409 close(new_fd[1]); in process_mux_new_session()
410 close(new_fd[2]); in process_mux_new_session()
435 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1) in process_mux_new_session()
439 if (!isatty(new_fd[0])) in process_mux_new_session()
440 set_nonblock(new_fd[0]); in process_mux_new_session()
[all …]
/external/bison/lib/
Dspawni.c256 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/
Dmultiprocess_test_android.cc58 int new_fd = it->second; in SpawnMultiProcessTestChild() local
59 if (dup2(old_fd, new_fd) < 0) { in SpawnMultiProcessTestChild()
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsyscall_unittest.cc86 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/
Dlistener.c396 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/
Ddbus-sysdeps-unix.c2949 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/
Dlaunch_posix.cc381 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/
Dsys-linux.c267 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()