www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/20/06:16:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <95455e980802200315k5b420747iffe1ab7a6e69035b@mail.gmail.com>
Date: Wed, 20 Feb 2008 22:15:07 +1100
From: hce <webmail DOT hce AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Support select() to read data from serial port
In-Reply-To: <004a01c873ad$499e59b0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <95455e980802200235m574ab1b7j4875211aa96651cb AT mail DOT gmail DOT com> <004a01c873ad$499e59b0$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2/20/08, Dave Korn <dave DOT korn AT artimi DOT com> wrote:
> On 20 February 2008 10:35, hce wrote:
>
> > Hi,
> >
> > I guess that
> > select() is not supported by the window, nor by minGW.
>
>   Yep.
>
> > Will cygwin support select() in a fiile
> > system to read data from a serial port?
>
>   Yep.
>
> > In cygwin, can I keep native
> > read() and write() system call to a serial port file descriptor,
>
>   Yep.
>
>   :)
>
>   You should be able to just recompile your program on cygwin and it'll work.
> You even get to use linux-alike /dev/ttyS0 names to access the serial port
> (ttyS0 = COM1, ttyS1 = COM2, etc..)

Great. I don't have a window system here right now, I'll have to
install cygwin tomorrow (otherwise I should not ask the following
questions :-)). Should I just need to install setup.exe to enable me
to recompile the program on cygwin, or should I need to install other
resource as well for the compilation? I was using the minGW for
compilation on window at the moment.


Thank you.

Jim

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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