This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ioctl and FIONREAD?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]