[PATCH] Fix FileChannelImpl::available failure on s390x
Tom Tromey
tromey@redhat.com
Thu Oct 21 15:04:00 GMT 2004
>>>>> "Ulrich" == Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de> writes:
Ulrich> I've found the cause of the intermittent Process_[123] test
Ulrich> case failures on s390x-ibm-linux (64-bit only). It turned out
Ulrich> to be a call to the FIONREAD ioctl using an incorrect
Ulrich> parameter: the Linux kernel assumes the argument is an 'int
Ulrich> *', not a 'long *'.
Good catch.
Ulrich> * gnu/java/nio/channels/natFileChannelPosix.cc
Ulrich> (FileChannelImpl::available): Call FIONREAD ioctl with 'int *'
Ulrich> argument instead of 'long *'.
Apparently the libstdc++ guys discovered that on Irix 6.5, this ioctl
takes an `off_t *'. They solved this with a host-specific
define... I'm not sure what we should do. Do we even build on this
platform any more?
Anyway, your patch is fine, as it is an improvement.
Tom
More information about the Java-patches
mailing list