Lines Matching refs:FD
92 (void)tcgetattr(FD, &cntrl);
94 (void)tcsetattr(FD, TCSANOW, &cntrl);
95 (void)tcflush(FD, TCIOFLUSH);
96 (void)write(FD, "ATv0\r", 5); /* tell modem to use short status codes */
99 (void)write(FD, "ATTD", 4); /* send dial command */
103 (void)write(FD, num, strlen(num));
104 (void)write(FD, "\r", 1);
114 (void)tcflush(FD, TCIOFLUSH);
129 (void)ioctl(FD, TIOCCDTR, 0);
131 (void)ioctl(FD, TIOCSDTR, 0);
139 (void)write(FD, "\r", 1); /* send anything to abort the call */
172 (void)read(FD, &c, 1);
236 (void)tcflush(FD, TCIOFLUSH);
240 (void)tcflush(FD, TCIOFLUSH);
242 (void)write(FD, "ATH0\r", 5); /* insurance */
251 (void)ioctl(FD, FIONREAD, &len);
254 rlen = read(FD, dumbuf, min(len, DUMBUFLEN));
258 (void)write(FD, "ATv1\r", 5);
261 (void)ioctl(FD, FIONREAD, &len);
263 rlen = read(FD, dumbuf, min(len, DUMBUFLEN));
268 (void)tcflush(FD, TCIOFLUSH);
269 (void)ioctl(FD, TIOCCDTR, 0); /* clear DTR (insurance) */
270 (void)close(FD);
281 (void)write(FD, "AT\r", 3);
283 (void)ioctl(FD, FIONREAD, &len);
285 len = read(FD, dumbuf, (size_t)min(len, DUMBUFLEN));
294 (void)ioctl(FD, TIOCCDTR, 0);
295 (void)ioctl(FD, TIOCSDTR, 0);