delorie.com/archives/browse.cgi | search |
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: | <3A2E8EBA.5EEB6BA3@sattel.com> |
Date: | Wed, 06 Dec 2000 11:08:42 -0800 |
From: | Bruce Edge <bedge AT sattel DOT com> |
Organization: | Sattel Global Networks |
X-Mailer: | Mozilla 4.75 [en] (X11; U; Linux 2.2.15-4mdk i686) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin support <cygwin AT sources DOT redhat DOT com> |
Subject: | O_NONBLOCK serial I/O blocks on 95, OK on NT |
I'm opening /dev/com1 as follows: fd = open( "/dev/com1", O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY ); on NT the O_NONBLOCK works fine. on win 95, read( fd, buf, max_len ) blocks. I don't think the termios stuff should affect this, at least if it did, I should be having the same problem under NT. Is there a fix for this? Or, is there any way to check for chars pending before reading? I'm already using select(), which shouldn't even drop out of the wait until there's data. TIA, Bruce. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |