Lines Matching defs:ttyfd
656 int fdout, ptyfd, ttyfd, ptymaster;
662 ttyfd = s->ttyfd;
673 close(ttyfd);
680 close(ttyfd);
692 close(ttyfd);
708 pty_make_controlling_tty(&ttyfd, s->tty);
711 if (dup2(ttyfd, 0) < 0)
713 if (dup2(ttyfd, 1) < 0)
715 if (dup2(ttyfd, 2) < 0)
719 close(ttyfd);
754 close(ttyfd);
835 if (s->ttyfd != -1) {
853 else if (s->ttyfd == -1) {
861 if (s->ttyfd != -1)
1286 if (s->ttyfd != -1)
1611 if (s->ttyfd != -1) {
1731 session_setup_sia(pw, s->ttyfd == -1 ? NULL : s->tty);
1931 sessions[id].ttyfd = -1;
2021 if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) {
2108 if (s->ttyfd != -1) {
2132 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty,
2137 s->ttyfd = -1;
2146 tty_parse_modes(s->ttyfd, &n_bytes);
2386 if (s->ttyfd == -1)
2409 s->ttyfd = -1;
2549 if (s->ttyfd != -1)
2580 if (s->ttyfd != -1)
2607 if (s->ttyfd != -1)
2651 if (s->used && s->ttyfd != -1) {