Lines Matching refs:FD
75 if (!vensync(FD)) {
82 (void)tcgetattr(FD, &cntrl);
84 (void)tcsetattr(FD, TCSANOW, &cntrl);
88 (void)write(FD, cp, 1);
91 (void)write(FD, "\r", 1);
95 (void)tcflush(FD, TCIOFLUSH);
125 (void)close(FD);
132 (void)write(FD, "\03", 1);
133 (void)close(FD);
144 (void)read(FD, &c, 1);
150 (void)write(FD, &c, 1);
154 (void)write(FD, &c, 1);
155 (void)read(FD, &c, 1);
186 (void)read(FD, cp, 1);
206 vensync(int fd)
219 (void)ioctl(FD, TIOCCDTR, 0);
221 (void)ioctl(FD, TIOCSDTR, 0);
228 (void)write(fd, "\r", 1);
230 (void)write(fd, "\r", 1);
232 if (ioctl(fd, FIONREAD, &nread) < 0) {
237 (void)read(fd, buf, min(nread, sizeof buf));