ioctl: FIONREAD and ENOTTY
Wed Jul 20 08:11:00 GMT 2011
On Linux, ioctl(2) returns several different errors:
EBADF d is not a valid descriptor.
EFAULT argp references an inaccessible memory area.
EINVAL Request or argp is not valid.
ENOTTY d is not associated with a character special device.
ENOTTY The specified request does not apply to the kind of object that
the descriptor d references.
In the case of FIONREAD, Cygwin doesn't seem to distinguish between
EINVAL and ENOTTY, and this causes at least one major bug:
I have patched GCJ and GNU classpath to work around it, but this really
needs to be fixed in Cygwin itself.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin