[comp.lang.c] serial I/O control in 'C'

pag@tcsc3b2.UUCP (Philip A. Gross) (03/08/89)

I am developing a daemon which must perform a certain amount of simple
I/O with a peripheral which is connected to a serial port on a UNIX(tm)
system.  While most of the program has been developed, there are two
areas that I have not been able to figure out how to handle.

The device has two switches that will close in a pre-defined sequence, 
the first should bring DCD high when it closes and the second will bring
CTS high when it closes.  However, it is also necessary to detect when
DCD is dropped (this can be handled with a trap of the HUPCL signal).  I
had thought that iocntrl statements of some sort would be able to handle
this, but I could not extract anything meaningful from the manual
regarding this issue.  I am trying to avoid writing a device driver to
implement this.

Any ideas out there?


Thanks ahead of time.

===============================================================================
Philip A. Gross       The Computer Solution Co., Inc.       Voice: 804-794-3491
-------------------------------------------------------------------------------
INTERNET:	pag%tcsc3b2@wb3ffv.ampr.org pag%tcsc3b2@uunet.UU.NET
USENET:		...!{ka3ovk,uunet,wb3ffv,xanth}!tcsc3b2!pag
UUCP:		tcsc3b2!pag	(804)794-1514
ATTMAIL:	attmail!tcsc3b2!pag
-------------------------------------------------------------------------------
        The opinions expressed here are strictly mine and nobody elses.
        << I haven't heard what I have to say about that yet. >> :-)