Lines Matching refs:new_fd
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()
369 pty_fd = new_session(new_fd); in telnetd_main()
374 tm->new_fd = new_fd; in telnetd_main()
388 if ((w = dup_iacs(tm->buff1 + tm->buff1_written, tm->new_fd + inetd_m, in telnetd_main()
392 if (FD_ISSET(tm->new_fd, &rd)) { in telnetd_main()
393 if ((c = read(tm->new_fd, tm->buff2+tm->buff2_avail, in telnetd_main()
406 if (FD_ISSET(tm->new_fd, &wr)) { in telnetd_main()
407 if ((w = dup_iacs(tm->buff1 + tm->buff1_written, tm->new_fd + inetd_m, in telnetd_main()
442 xclose(tm->new_fd); in telnetd_main()