Lines Matching refs:fdin
93 static int fdin; /* Descriptor for stdin (for writing) */ variable
333 if (fdin != -1 && buffer_len(&stdin_buffer) > 0) in wait_until_can_do_something()
334 FD_SET(fdin, *writesetp); in wait_until_can_do_something()
473 if (!compat20 && fdin != -1 && FD_ISSET(fdin, writeset)) { in process_output()
476 len = write(fdin, data, dlen); in process_output()
481 if (fdin != fdout) in process_output()
482 close(fdin); in process_output()
484 shutdown(fdin, SHUT_WR); /* We will no longer send. */ in process_output()
485 fdin = -1; in process_output()
489 tcgetattr(fdin, &tio) == 0 && in process_output()
578 fdin = fdin_arg; in server_loop()
583 set_nonblock(fdin); in server_loop()
589 if (!(datafellows & SSH_BUG_IGNOREMSG) && isatty(fdin)) in server_loop()
608 max_fd = MAX(max_fd, fdin); in server_loop()
640 if (stdin_eof && fdin != -1 && buffer_len(&stdin_buffer) == 0) { in server_loop()
641 if (fdin != fdout) in server_loop()
642 close(fdin); in server_loop()
644 shutdown(fdin, SHUT_WR); /* We will no longer send. */ in server_loop()
645 fdin = -1; in server_loop()
695 max_fd = MAX(max_fd, fdin); in server_loop()
746 if (fdin != -1) in server_loop()
747 close(fdin); in server_loop()
748 fdin = -1; in server_loop()
908 if (fdin == -1) in server_input_stdin_data()
940 if (fdin != -1) in server_input_window_size()
941 pty_change_window_size(fdin, row, col, xpixel, ypixel); in server_input_window_size()