Lines Matching refs:s_fd
46 static int s_fd = -1; /* fd of the AT channel */ variable
375 count = read(s_fd, p_read, in readline()
483 if (s_fd < 0 || s_readerClosed > 0) { in writeline()
494 written = write (s_fd, s + cur, len - cur); in writeline()
507 written = write (s_fd, "\r" , 1); in writeline()
522 if (s_fd < 0 || s_readerClosed > 0) { in writeCtrlZ()
533 written = write (s_fd, s + cur, len - cur); in writeCtrlZ()
546 written = write (s_fd, "\032" , 1); in writeCtrlZ()
578 s_fd = fd; in at_open()
603 if (s_fd >= 0) { in at_close()
604 close(s_fd); in at_close()
606 s_fd = -1; in at_close()