[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/31927] New: gnu_java_nio_VMChannel.c(available) does not
From: |
kaz at maczuka dot gcd dot org |
Subject: |
[Bug classpath/31927] New: gnu_java_nio_VMChannel.c(available) does not work for FreeBSD |
Date: |
14 May 2007 22:16:09 -0000 |
gnu_java_nio_VMChannel.c has this code:
if (ioctl (fd, FIONREAD, &avail) == -1)
JCL_ThrowException (env, IO_EXCEPTION, strerror (errno));
But FreeBSD's ioctl with FIONREAD fails because of errno = 25
(Inappropriate ioctl for device).
native/jni/native-lib/cpio.c has a similar code:
#if defined (FIONREAD)
ssize_t n;
if (ioctl (fd, FIONREAD, (char *)&n) != 0)
return errno;
This checking for FIONREAD does not work for FreeBSD because
FreeBSD does have FIONREAD but it cannot be used for calculating
available bytes.
--
Summary: gnu_java_nio_VMChannel.c(available) does not work for
FreeBSD
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kaz at maczuka dot gcd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31927
- [Bug classpath/31927] New: gnu_java_nio_VMChannel.c(available) does not work for FreeBSD,
kaz at maczuka dot gcd dot org <=