Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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)" To: "'Frank Wagner'" , 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) Content-Type: text/plain; charset="ISO-8859-1" 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