www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/04:41:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <5F052F2A01FBD11184F00008C7A4A80005E1DA9A@EUKBANT101>
From: "Richard Hellicar (EML)" <Rick DOT Hellicar AT eml DOT ericsson DOT se>
To: "'Frank Wagner'" <f DOT wagner AT gmx DOT net>, cygwin AT sourceware DOT cygnus DOT com
Subject: RE: accessing serial ports with cygwin
Date: Tue, 1 Aug 2000 10:40:13 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2651.58)
X-OriginalArrivalTime: 01 Aug 2000 08:40:24.0371 (UTC) FILETIME=[2296E830:01BFFB94]

 
> Hello,
> 
> I try to access the serial ports with cygwin under Windows95.
> To do this I don't know wether I have to use the functins that are
> included in
> dos.h and conio.h that is part of the mingw system or wether there are
> equal
> header files that belong to cygwin directly.
> Is there any documentation that describes the funktions included in the
> header files that come with the cygwin distribution.
> 

There's a very helpful document called "Serial Programming Guide for POSIX Operating Systems" (5th Edition, Michael Sweet http://www.easysw.com/~mike/serial/index.html).  You have to change the device names to com1, etc., but it works well (at least in Windows NT 4).  I seem to remember having a couple of problems - I think that ioctl() didn't report the right number of bytes in the input buffer, but I could be remembering it wrong.

Rick


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019