Lines Matching refs:ptyfd
51 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) in pty_allocate() argument
58 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); in pty_allocate()
77 slave = _getpty(ptyfd, O_RDWR, 0622, 0); in pty_allocate()
87 close(*ptyfd); in pty_allocate()
120 *ptyfd = ptm; in pty_allocate()
126 close(*ptyfd); in pty_allocate()
149 *ptyfd = open("/dev/ptc", O_RDWR | O_NOCTTY); in pty_allocate()
150 if (*ptyfd < 0) { in pty_allocate()
154 name = ttyname(*ptyfd); in pty_allocate()
162 close(*ptyfd); in pty_allocate()
182 *ptyfd = open(buf, O_RDWR|O_NOCTTY); in pty_allocate()
183 if (*ptyfd < 0) in pty_allocate()
190 close(*ptyfd); in pty_allocate()
212 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
213 if (*ptyfd < 0) { in pty_allocate()
217 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
218 if (*ptyfd < 0) in pty_allocate()
226 close(*ptyfd); in pty_allocate()
230 if (tcgetattr(*ptyfd, &tio) < 0) in pty_allocate()
238 if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0) in pty_allocate()
356 pty_change_window_size(int ptyfd, int row, int col, in pty_change_window_size() argument
365 (void) ioctl(ptyfd, TIOCSWINSZ, &w); in pty_change_window_size()