Lines Matching defs:ttyfd
565 int fdout, ptyfd, ttyfd, ptymaster, pipe_fds[2];
571 ttyfd = s->ttyfd;
603 pty_make_controlling_tty(&ttyfd, s->tty);
606 if (dup2(ttyfd, 0) < 0)
608 if (dup2(ttyfd, 1) < 0)
610 if (dup2(ttyfd, 2) < 0)
614 close(ttyfd);
662 close(ttyfd);
707 if (s->ttyfd != -1)
1100 if (s->ttyfd != -1)
1545 s->ttyfd = -1;
1596 if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) {
1660 if (s->ttyfd != -1) {
1724 if (!pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) {
1729 s->ttyfd = -1;
1738 tty_parse_modes(s->ttyfd, &n_bytes);
2125 if (s->ttyfd == -1)
2155 s->ttyfd = -1;
2268 if (s->ttyfd != -1) {
2329 if (s->ttyfd != -1) {
2364 if (s->used && s->ttyfd != -1) {
2561 if (prompt != NULL && s->ttyfd != -1) {
2564 (void) write(s->ttyfd, prompt, strlen(prompt));
2565 (void) write(s->ttyfd, "\n", 1);
2573 if (prompt != NULL && s->ttyfd != -1) {
2576 (void) write(s->ttyfd, prompt, strlen(prompt));
2577 (void) write(s->ttyfd, "\n", 1);