[comp.unix.programmer] Simple RAW serial rs232 output from a Sparcstation 1

hqm@media-lab.MEDIA.MIT.EDU (Henry Minsky) (10/28/90)

I am trying to hook a faxmodem up to the serial port of a sparcstation.

I want to open the serial line at 19.2kbaud, RAW mode.

I want to be able to do a few simple operations:

read characters
write characters
flush the input buffer

Can anyone tell me the simplest way to do this? The Sun documentation
is a nightmare mixture of 4.3bsd / sysV compatibility options. I just
want to do some ioctl calls. But the documentation says that's
obsolete, use termios, or termio, which is made from STREAMS which is...

Can anyone point me at a simple example of source code, or recommend the correct
documentation to read?

Thanks,

	Henry Minsky
	(hqm@ai.mit.edu)