Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!olivea!bu.edu!bu-pub.bu.edu!rhb From: rhb@bu-pub.bu.edu (Rick Broberg) Newsgroups: comp.unix.questions Subject: reading from rs232 tty in ULTRIX Keywords: rs232, tty, device driver Message-ID: <72902@bu.edu.bu.edu> Date: 23 Jan 91 04:44:02 GMT Sender: news@bu.edu.bu.edu Reply-To: rhb@bu-pub.bu.edu (Rick Broberg) Organization: Boston University Lines: 10 I'm trying to read from a /dev/tty in ultrix which is the external serial port on the machine. I can open it, ioctl it for proper speed and data format configuration, even write to it just fine. When I read from it, read *never* blocks, and multiple reads return the same thing over and over, including some random junk. Read doesn't return -1 or 0, just random numbers. Do I need to write a device driver for this? If so, how? Can I escape having to? If I must, why is it that the output to the port does work but not the input.