[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/35536] New: ioctl and FIONREAD on Cygwin
From: |
mario dot latronico at gmail dot com |
Subject: |
[Bug classpath/35536] New: ioctl and FIONREAD on Cygwin |
Date: |
11 Mar 2008 09:46:22 -0000 |
On Cygwin (on X86) ioctl on FIONREAD returns EINVAL on the errno variable
instead of ENOTTY. So on the file native/jni/java-nio/gnu_java_nio_VMChannel.c
the function Java_gnu_java_nio_VMChannel_available (JNIEnv *env,
jclass c __attribute__((unused)), jint fd) should
control also for EINVAL on errno variable. For example, starting from line 1601
(from today cvs):
if (ioctl (fd, FIONREAD, &avail) == -1)
{
#if defined(ENOTTY) && defined(HAVE_FSTAT)
if (errno == ENOTTY)
the last line on cygwin should be
if (errno == ENOTTY || errno = EINVAL)
The configure string is :
./configure --without-x --disable-gtk-peer --disable-gconf-peer
--disable-plugin
--
Summary: ioctl and FIONREAD on Cygwin
Product: classpath
Version: 0.96.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mario dot latronico at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35536
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/35536] New: ioctl and FIONREAD on Cygwin,
mario dot latronico at gmail dot com <=