Lines Matching refs:ttyfd
64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
70 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
79 name = ttyname(*ttyfd);
104 pty_make_controlling_tty(int *ttyfd, const char *tty)
127 ioctl(*ttyfd, TCSETCTTY, NULL);
131 close(*ttyfd);
132 *ttyfd = fd;
158 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
175 close(*ttyfd);
176 *ttyfd = fd;