| 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 sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| From: | Dtcohen AT aol DOT com |
| Message-ID: | <0.5cf5cac9.25a3a930@aol.com> |
| Date: | Tue, 4 Jan 2000 14:51:12 EST |
| Subject: | Blocking I/O with Cygwin v1.0 |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| CC: | Dtcohen AT aol DOT com |
| MIME-Version: | 1.0 |
| X-Mailer: | Unknown (No Version) |
Dear Cygnus,
A am running Cygwin v1.0 from the CD and have noticed that by
default I/O is non-blocked. Shouldn't it be blocked by default,
and a call to fcntl() be required in order to set non-blocked mode?
Example test program:
#include <stdio.h>
main()
{
char Ch;
Ch = getc(stdin);
while (Ch != 'q') {
putc(Ch, stdout);
Ch = getc(stdin);
}
}
If I run this program and type in 12345678, on Cygwin B20.1
and on my Unix worstation I see the following on my screen:
12345678
12345678
But if I try this with Cygwin v1.0 I get the following:
1122334455667788
Could this possibly be fixed by stty? If not, are fcntl() calls working
with v1.0?
P.S. This problem causes "bc" and "dc" to not accept backspaces (v1.0).
Many thanks,
Jim Grishaw.
(dtcohen AT aol DOT com)
--
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 |