sysdeps/unix/sysv/linux/lseek.c on ILP32 question
Andreas Schwab
schwab@linux-m68k.org
Tue Feb 21 18:58:00 GMT 2017
On Feb 21 2017, Steve Ellcey <sellcey@caviumnetworks.com> wrote:
> I am looking at sysdeps/unix/sysv/linux/lseek.c and the code for when
> __NR__llseek is defined.  It has:
>
> Â int rc = INLINE_SYSCALL_CALL (_llseek, fd,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â (long) (((uint64_t) (offset)) >> 32),
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â (long) offset, &res, whence);
>
> And I am not sure the conversion from offset to the two llseek
> arguments is correct for both LP64 and ILP32 modes when offset is
> negative.
This isn't used for LP64, which won't have _llseek.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list