This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ioctl and FIONREAD?
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: ioctl and FIONREAD?
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Tue, 6 Jun 2000 19:19:57 -0400
- References: <14653.34541.555000.676136@gargle.gargle.HOWL>
- Reply-To: cygwin at sourceware dot cygnus dot com
On Tue, Jun 06, 2000 at 11:19:09PM +0000, Markus Hoenicka wrote:
>the following code results in an access violation:
>
> ioctl(fd, FIONREAD, &nread);
>
>This is still on B20.1. If anyone could assure me that this works on
>the latest (or the upcoming) net release, I'd finally have a good
>reason to upgrade.
I'm not aware of a version of Cygwin where this has ever worked. I.e.,
% grep FIONREAD *.cc
%
>If this still doesn't work: Is there a workaround? I just have to
>check whether any data are available to read from fd.
Since I'm not aware of any universal way to do this using the Win32 API,
I don't think a workaround is possible, unless you want to use
non-blocking I/O which should work better in the current net releases
than in B20.1.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com