Subject: Re: xterm jump scrolling on sparc64
To: john heasley <email@example.com>
From: Eduardo Horvath <eeh@NetBSD.org>
Date: 06/01/2004 17:13:08
On Tue, Jun 01, 2004 at 07:54:19AM -0700, john heasley wrote:
> Tue, Jun 01, 2004 at 01:28:33PM +0200, Matthias Scheler:
> > But if SUS indeed says that FIONREAD expects an "int" argument you
> > should better write like this:
> > #if defined(FIONREAD)
> > #ifdef SGIArchitecture
> > long arg = 0;
> > ioctl(fd, FIONREAD, (char *) &arg);
> > return (int) arg;
> > #else
> > int arg = 0;
> > ioctl(fd, FIONREAD, &arg);
> > return arg;
> > #endif
> > #elif defined(__CYGWIN__)
> Does that do it for windows + x86_64?
Since Windows is little-endian, and what's more ILP32 or ILP64
(not I32LP64) it shouldn't care which version is used.
BTW, you probably should verify that FIONREAD returns a long on
64-bit IRIX and they weren't just getting lucky on 32-bit IRIX.