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 |
Date: | Mon, 16 Jul 2001 17:27:36 +0200 |
From: | Kurt Roeckx <Q AT ping DOT be> |
To: | cygwin AT cygwin DOT com |
Subject: | select on the parallel port, and non-blocking io |
Message-ID: | <20010716172736.A6856@ping.be> |
Mime-Version: | 1.0 |
X-Mailer: | Mutt 1.0pre2i |
I use select on 2 fds, one of which is the parallel port. The parallel port was opened like this: port = open("lpt1", O_RDWR, O_NONBLOCK); There shouldn't be any data on the port, since there is no device attached, or it's powered down (I tried both). Yes select() says I can read from it, and blocks on it. Kurt -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |