www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/20/05:36:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <95455e980802200235m574ab1b7j4875211aa96651cb@mail.gmail.com>
Date: Wed, 20 Feb 2008 21:35:29 +1100
From: hce <webmail DOT hce AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Support select() to read data from serial port
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi,

I have a C++ program using select() to read data from a serial port
with a QT package. It runs fine in a linux system, but could not run
on a window system with a pre-installed minGW. I have zero experience
on window program environment and I am new to cygwin. I guess that
select() is not supported by the window, nor by minGW. I am going to
replace minGW by cygwin. Will cygwin support select() in a fiile
system to read data from a serial port? In cygwin, can I keep native
read() and write() system call to a serial port file descriptor, or I
should change them to window ReadFile() and WriteFile()?

Thank you.

Kind Regards,

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