This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add sysdeps/unix/sysv/linux/x86_64/x32/lseek.S
On Mon, May 21, 2012 at 2:56 PM, Roland McGrath <firstname.lastname@example.org> wrote:
>> I believe it is a bug on x86-64:
> It could be called that, but it's far too late to remove anything from that
>> x86-64 provides a llseek which is an alias of lseek. ?I don't see how
>> it can work as llseek:
>> ? ? ? int _llseek(unsigned int fd, unsigned long offset_high,
>> ? ? ? ? ? ? ? ? ? ?unsigned long offset_low, loff_t *result,
>> ? ? ? ? ? ? ? ? ? ?unsigned int whence);
> Since we don't have a declaration for llseek in any libc header file, it
> could just as well be said that llseek has a different signature (that of
> lseek64) on 64-bit machines.
I can add llseek to x32 and make it an alias of lseek64 if needed.
Still x32 needs an dummy lseek.S.