RTS sensing in C
Arrigo Benedetti
root at pubit.sublink.ORG
Tue Aug 21 05:41:57 AEST 1990
Is there any way of sensing the state of the RTS/CTS line of the serial interface in a C program ?
I know that I could probably read the 8250 status register, but I'm looking for
a solution which is hardware independent.
BTW is there any other modem control signal that I can detect from a C program
or shell script ? I know how to sense the DCD, but what about, for example, the DTR line?
I appreciate in advance any suggestions.
-Arrigo
P.S. the application should be portable to several unix platforms, but will
run primarily in the SCO Unix/Xenix environment.
--
Arrigo Benedetti | USENET: root at pubit.sublink.ORG
Via S.Agata 11, 41100 Modena - Italy | BANG: ..!rutgers!deejay!gear!pubit
VOICE +39.59.216688 FAX +39.59.220727 |
TELEX 512007 PUBIT I | Sublink ... the Italian **nix link ...
More information about the Comp.unix.questions
mailing list