Support select() to read data from serial port

hce webmail.hce@gmail.com
Wed Feb 20 12:41:00 GMT 2008


On 2/20/08, Dave Korn <dave.korn@artimi.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/



More information about the Cygwin mailing list