Lines Matching refs:input_fd
31 int input_fd; member
102 if (f->input_fd >= 0) { in pty_forward_disconnect()
104 (void) tcsetattr(f->input_fd, TCSANOW, &f->saved_stdin_attr); in pty_forward_disconnect()
106 (void) fd_nonblock(f->input_fd, false); in pty_forward_disconnect()
108 f->input_fd = safe_close(f->input_fd); in pty_forward_disconnect()
211 … k = read(f->input_fd, f->in_buffer + f->in_buffer_full, LINE_MAX - f->in_buffer_full); in shovel()
365 assert(fd == f->input_fd); in on_stdin_event()
420 .input_fd = -1, in pty_forward_new()
443 f->input_fd = fd_reopen(STDIN_FILENO, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NONBLOCK); in pty_forward_new()
444 if (f->input_fd < 0) { in pty_forward_new()
447 … log_debug_errno(f->input_fd, "Failed to reopen stdin, using original fd: %m"); in pty_forward_new()
453 f->input_fd = STDIN_FILENO; in pty_forward_new()
487 assert(f->input_fd >= 0); in pty_forward_new()
489 if (tcgetattr(f->input_fd, &f->saved_stdin_attr) >= 0) { in pty_forward_new()
497 tcsetattr(f->input_fd, TCSANOW, &raw_stdin_attr); in pty_forward_new()
512 …r = sd_event_add_io(f->event, &f->stdin_event_source, f->input_fd, EPOLLIN|EPOLLET, on_stdin_event… in pty_forward_new()