Xref: utzoo comp.unix.questions:30668 comp.unix.wizards:25087 comp.unix.internals:2605 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!mips!tecate.mips.com!trevc From: trevc@tecate.mips.com (Trevor Cotton) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals Subject: Re: determining if DCE device is ready Message-ID: <2576@spim.mips.COM> Date: 23 Apr 91 21:43:18 GMT References: <8272@alpha.cam.nist.gov> Sender: news@mips.COM Reply-To: trevc@mips.com Followup-To: comp.unix.questions Organization: Mips Computer Systems Inc., Sunnyvale, CA Lines: 20 Nntp-Posting-Host: tecate.mips.com In article <8272@alpha.cam.nist.gov>, coleman@cam.nist.gov (Sean Sheridan Coleman X5672) writes: |> I am working on a program that uses the tty serial lines. i |> would like to be able from my program to sense if the DCE (Data |> Communication Equipment) is at the other end and running, ie |> i dont want to have the program connect to a port that has |> nothing plugged into it. Is there a way to see if DATA CARRIER |> DETECT is high at the DCE end from a C program. |> |> |> Thanks in advanced` |> |> Sean Coleman |> NIST |> coleman@bldrdoc.gov If your OS has Berkeley functionality you should be able to use the TIOCMGET ioctl. -- --trevc--