Lines Matching refs:FD
69 (void)tcgetattr(FD, &cntrl);
71 (void)tcsetattr(FD, TCSANOW, &cntrl);
80 t3000_write(FD, "AT E0\r", 6); /* turn off echoing */
86 (void)tcflush(FD, TCIOFLUSH);
87 t3000_write(FD, "AT E0 H0 Q0 X4 V1\r", 18);
91 t3000_write(FD, "AT D", 4);
95 t3000_write(FD, num, (int)strlen(num));
96 t3000_write(FD, "\r", 1);
107 (void)ioctl(FD, TIOCCDTR, 0);
109 (void)ioctl(FD, TIOCSDTR, 0);
111 (void)close(FD);
117 t3000_write(FD, "\r", 1); /* send anything to abort the call */
148 (void)read(FD, &c, 1);
211 n = read(FD, &c, 1);
236 (void)tcgetattr(FD, &cntrl);
239 (void)tcsetattr(FD, TCSAFLUSH, &cntrl);
272 (void)tcflush(FD, TCIOFLUSH);
273 t3000_write(FD, "\rAT Z\r", 6); /* reset modem */
276 (void)ioctl(FD, FIONREAD, &len);
281 len = read(FD, buf, sizeof(buf));
295 t3000_write(FD, "+++", 3);
301 (void)ioctl(FD, TIOCCDTR, 0);
303 (void)ioctl(FD, TIOCSDTR, 0);
305 t3000_write(FD, "\rAT Z\r", 6);
310 t3000_write(int fd, const char *cp, int n)
317 (void)tcdrain(fd);
320 (void)write(fd, cp, 1);
321 (void)tcdrain(fd);
332 if (ioctl(FD, FIONREAD, &n) < 0)
336 if (read(FD, buf, n) != n)