Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>,
	<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Reply-To: <ssiddiqi@ipass.net>
From: "Suhaib M. Siddiqi" <ssiddiqi@ipass.net>
To: "Hans - Dulimarta" <dulimart@egr.msu.edu>, <cygwin@sourceware.cygnus.com>
Subject: RE: Accessing serial port.
Date: Thu, 5 Aug 1999 13:18:26 -0400
Message-ID: <NDBBLHPPKKBKPBLLMFJBCEGKCBAA.ssiddiqi@ipass.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <Pine.GSO.4.10.9908051257330.12515-100000@scully>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal



>
>
> I am porting my C codes from DJGPP to Cygwin. One of the modules has
> several lines which read and write to COM1. I rewrite the code using
> open ("/dev/com1"), read (....), write (....), etc. However, the code
> seems to hang. The exact same code works fine under Linux by replacing
> "/dev/com1" to "/dev/ttyS0".
>

This requires accessing the hardware through a proper device driver on
Windows.
It is not that easy
to change /dev/xxx to someting.  Check http://www.microsoft.com/hwdrv/ddk
for info about devices.  If it would have been so easy I would have finished
Xfree86 port a long time ago ;-)



> Could somebody please help me out.
> Thanks.
>
>
> Hans Dulimarta, Ph.D.    [dulimart@egr.msu.edu, dulimart@computer.org]
> Visiting Research Associate
> Department of Electrical & Computer Engineering         (517) 432-7589
> Michigan State University, East Lansing, Michigan 48824
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

