Re: 2.4.19-rc1 broke OSF binaries on alpha

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Sun, 30 Jun 2002 03:50:58 +0400


On Sat, Jun 29, 2002 at 03:28:50AM +0100, Alan Cox wrote:
> Please back it back in. The bug is the Alpha port. Alpha needs its own OSF
> readv/writev entry point which masks the top bits.

Ouch. The new entry point just because of this?!
Marcelo, if you're going to back in that patch, please apply
the following on the top of it.

Ivan.

--- linux/fs/read_write.c.ac Fri Jun 28 11:52:59 2002
+++ linux/fs/read_write.c Sun Jun 30 03:21:52 2002
@@ -260,7 +260,15 @@ static ssize_t do_readv_writev(int type,
ret = -EINVAL;
for (i = 0 ; i < count ; i++) {
ssize_t tmp = tot_len;
+#ifdef __alpha__
+ /* Current versions of Tru64 unix are SuS compliant.
+ Unfortunately, we have to use the binaries (namely
+ Netscape and Acrobat Reader) compiled vs. older
+ versions of OSF/1, where iov_len was a 32 bit integer. */
+ ssize_t len = (int) iov[i].iov_len;
+#else
ssize_t len = (ssize_t) iov[i].iov_len;
+#endif
if (len < 0) /* size_t not fitting an ssize_t .. */
goto out;
tot_len += len;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/