Lines Matching refs:ptyfd
49 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
56 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
77 slave = _getpty(ptyfd, O_RDWR, 0622, 0);
89 close(*ptyfd);
126 *ptyfd = ptm;
133 close(*ptyfd);
162 *ptyfd = open("/dev/ptc", O_RDWR | O_NOCTTY);
163 if (*ptyfd < 0) {
168 name = ttyname(*ptyfd);
178 close(*ptyfd);
199 *ptyfd = open(buf, O_RDWR | O_NOCTTY);
200 if (*ptyfd < 0) {
204 *ptyfd = open(buf, O_RDWR | O_NOCTTY);
205 if (*ptyfd < 0) {
215 close(*ptyfd);
219 if (tcgetattr(*ptyfd, &tio) < 0) {
228 if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0) {
343 pty_change_window_size(int ptyfd, int row, int col,
352 (void) ioctl(ptyfd, TIOCSWINSZ, &w);