[PATCH] [BZ #19371] Properly handle x32 syscall
Dmitry V. Levin
ldv@altlinux.org
Wed Dec 16 17:37:00 GMT 2015
On Wed, Dec 16, 2015 at 12:12:12PM -0500, Rich Felker wrote:
> On Wed, Dec 16, 2015 at 07:01:39AM -0800, H.J. Lu wrote:
> > X32 syscall() may return 64-bit integer as lseek, time and times. Its
> > return type should be __syscall_slong_t instead of long int. We need
> > to properly return 64-bit error value.
>
> Where is this actually needed?
On linux x32, at least lseek, time, and times syscalls return values that
cannot be properly stored in a 32-bit long int. If libc syscall wrapper
is unable to forward values returned by these syscalls, you hardly can use
such a syscall wrapper with __NR_lseek, __NR_time, or __NR_times.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151216/d66036ec/attachment.sig>
More information about the Libc-alpha
mailing list