Lines Matching defs:pty
476 setup_io(int pty)
486 rc = copyTermios(0, pty);
498 val = fcntl(pty, F_GETFL, 0);
500 fcntl(pty, F_SETFL, val | O_NONBLOCK);
503 setWindowSize(0, pty);
509 cleanup_io(int pty)
522 val = fcntl(pty, F_GETFL, 0);
524 fcntl(pty, F_SETFL, val & ~O_NONBLOCK);
551 int pty;
563 rc = allocatePty(&pty, &line);
565 perror("Couldn't allocate pty");
587 close(pty);
599 parent(pid, pty);
651 parent(int pid GCC_UNUSED, int pty)
664 setup_io(pty);
672 rc = waitForInput(0, pty);
676 setWindowSize(0, pty);
684 i = (int) read(pty, buf, (size_t) BUFFER_SIZE);
695 copyIn(inputState, pty, buf, i);
701 cleanup_io(pty);