(FileChannelImpl::available): Call FIONREAD ioctl with 'int *'
argument instead of 'long *'.
From-SVN: r89391
+2004-10-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gnu/java/nio/channels/natFileChannelPosix.cc
+ (FileChannelImpl::available): Call FIONREAD ioctl with 'int *'
+ argument instead of 'long *'.
+
2004-10-21 Tom Tromey <tromey@redhat.com>
* java/util/ResourceBundle.java (tryBundle): Also ignore
FileChannelImpl::available (void)
{
#if defined (FIONREAD) || defined (HAVE_SELECT) || defined (HAVE_FSTAT)
- long num = 0;
+ int num = 0;
int r = 0;
bool num_set = false;
&& S_ISREG (sb.st_mode)
&& (where = lseek (fd, 0, SEEK_CUR)) != (off_t) -1)
{
- num = (long) (sb.st_size - where);
+ num = (int) (sb.st_size - where);
num_set = true;
}
}