Re: x86_64: 32bit emulation problems

Trond Myklebust
2005-03-03T22:28:01Z

to den 03.03.2005 Klokka 22:46 (+0100) skreiv Andi Kleen:

> > As far as the kernel is concerned, asm/posix_types defines
> > __kernel_ino_t as "unsigned long" on most platforms (except a few which
> > define is as "unsigned int). We don't care what size type glibc itself
> > uses.
>
> That could easily be changed and even pass out 64bit inodes
> on 32bit systems. The stat64 syscall ABI allows this.
>
> Perhaps that should be done and then you could drop the truncation
> code.

That would be the ideal solution. I don't see that the current system of
truncating is helping anyone.

> Of couse this would expose the glibc Bug Bernd ran into on 32bit
> too, but at some point they have to fix that bogosity anyways.

Right.

Cheers,
Trond
--
Trond Myklebust <trond.myklebust@fys.uio.no>