#7279: ioctl FIONREAD should set errno to ENOTTY for non supported file descriptors --------------------+------------------------- Reporter: korli | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: System | Version: R1/alpha2 Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: All | --------------------+------------------------- see [http://www.daemon-systems.org/man/ioctl.2.html] {{{ [ENOTTY] The specified request does not apply to the kind of object that the descriptor d references. }}} This affects GNU Classpath. see [http://cvs.savannah.gnu.org/viewvc/classpath/native/jni/java- nio/gnu_java_nio_VMChannel.c?revision=1.22&root=classpath&view=markup] method Java_gnu_java_nio_VMChannel_available {{{ if (ioctl (fd, FIONREAD, &avail) == -1) { #if defined(ENOTTY) && defined(HAVE_FSTAT) if (errno == ENOTTY) { }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/7279> Haiku <http://dev.haiku-os.org> Haiku - the operating system.