Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!deejay!gear!pubit!root From: root@pubit.sublink.ORG (Arrigo Benedetti) Newsgroups: comp.unix.questions Subject: RTS sensing in C Message-ID: <33@pubit.sublink.ORG> Date: 20 Aug 90 19:41:57 GMT Distribution: comp Organization: Arrigo Benedetti - Via S.Agata 11 41100 Modena - Italy Lines: 18 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@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 ...