A mmap64 patch
H . J . Lu
hjl@lucon.org
Sun May 27 23:39:00 GMT 2001
On Mon, May 28, 2001 at 08:31:15AM +0200, Jakub Jelinek wrote:
> On Sun, May 27, 2001 at 09:53:30PM -0700, H . J . Lu wrote:
> > > Your reply didn't seem to make sense.
> > >
> > > The code in sysdeps/unix/sysv/linux is for new ports. Old ports that
> >
> > Wrong. The code in sysdeps/unix/sysv/linux is for ports with 32bit
> > offset. All ports with 64bit offset, new and old, should have a dummy
> > mmap64.c like
>
> sysv/linux should really be for new ports.
> Perhaps we should restructure sysv/linux by adding sysv/linux/wordsize-32
> and sysv/linux/wordsize-64 (and adding related Implies) and moving files
I don't think it applies to those xxx64 64bit offset I/O functions. If
I get it right, you can have a port with wordsize == 32bit, but 64bit
off_t. Basically, the size of off_t may not be the same as wordsize.
And the new port should use 64bit off_t even if the hardware is 32bit.
Did you try to say sysv/linux/off_t-64 and sysv/linux/off_t-32, or
something like it?
H.J.
More information about the Libc-hacker
mailing list