This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix FileChannelImpl::available failure on s390x


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]